PlatformWebMessageChannel class abstract
The representation of the HTML5 message channels.
- Inheritance
-
- Object
- PlatformInterface
- PlatformWebMessageChannel
- Implemented types
- Annotations
-
- @SupportedPlatforms.new(platforms: [AndroidPlatform(), IOSPlatform(), MacOSPlatform(), LinuxPlatform(note: 'Implemented via JavaScript MessageChannel API.'), WindowsPlatform(note: 'Implemented via JavaScript MessageChannel API.')])
Constructors
- PlatformWebMessageChannel(PlatformWebMessageChannelCreationParams params)
-
Creates a new PlatformWebMessageChannel
factory
- PlatformWebMessageChannel.implementation(PlatformWebMessageChannelCreationParams params)
- Used by the platform implementation to create a new PlatformWebMessageChannel.
- PlatformWebMessageChannel.static()
-
Creates a new PlatformWebMessageChannel to access static methods.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Message Channel ID used internally.
no setter
- params → PlatformWebMessageChannelCreationParams
-
The parameters used to initialize the PlatformWebMessageChannel.
final
- port1 → PlatformWebMessagePort
-
The first PlatformWebMessagePort object of the channel.
no setter
- port2 → PlatformWebMessagePort
-
The second PlatformWebMessagePort object of the channel.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void -
Disposes the web message channel.
override
-
fromMap(
Map< String, dynamic> ? map) → PlatformWebMessageChannel? -
isClassSupported(
{TargetPlatform? platform}) → bool -
Check if the current class is supported by the defaultTargetPlatform or a specific
platform. -
isMethodSupported(
PlatformWebMessageChannelMethod method, {TargetPlatform? platform}) → bool -
Check if the given
methodis supported by the defaultTargetPlatform or a specificplatform. -
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