PlatformWebMessageChannelCreationParams class
Object specifying creation parameters for creating a PlatformWebMessageChannel.
Platform specific implementations can add additional fields by extending this class.
- Annotations
-
- @SupportedPlatforms.new(platforms: [AndroidPlatform(), IOSPlatform(), MacOSPlatform(), LinuxPlatform(note: 'Implemented via JavaScript MessageChannel API.'), WindowsPlatform(note: 'Implemented via JavaScript MessageChannel API.')])
- @immutable
Constructors
- PlatformWebMessageChannelCreationParams({required String id, required PlatformWebMessagePort port1, required PlatformWebMessagePort port2})
-
Used by the platform implementation to create a new PlatformWebMessageChannel.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Message Channel ID used internally.
final
- port1 → PlatformWebMessagePort
-
The first PlatformWebMessagePort object of the channel.
final
- port2 → PlatformWebMessagePort
-
The second PlatformWebMessagePort object of the channel.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
isClassSupported(
{TargetPlatform? platform}) → bool -
Check if the current class is supported by the defaultTargetPlatform or a specific
platform. -
isPropertySupported(
PlatformWebMessageChannelCreationParamsProperty property, {TargetPlatform? platform}) → bool -
Check if the given
propertyis supported by the defaultTargetPlatform or a specificplatform. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited