WebMessageChannel class

The representation of the HTML5 message channels.

Constructors

WebMessageChannel({required String id, required WebMessagePort port1, required WebMessagePort port2})
The representation of the HTML5 message channels.
WebMessageChannel.fromPlatform({required PlatformWebMessageChannel platform})
Constructs a WebMessageChannel from a specific platform implementation.
WebMessageChannel.fromPlatformCreationParams({required PlatformWebMessageChannelCreationParams params})
Constructs a WebMessageChannel.

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
no setter
platform PlatformWebMessageChannel
Implementation of PlatformWebMessageChannel for the current platform.
final
port1 WebMessagePort
no setter
port2 WebMessagePort
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Disposes the web message channel.
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

Static Methods

fromMap(Map<String, dynamic>? map) WebMessageChannel?
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 method is supported by the defaultTargetPlatform or a specific platform.
isPropertySupported(PlatformWebMessageChannelCreationParamsProperty property, {TargetPlatform? platform}) bool
Check if the given property is supported by the defaultTargetPlatform or a specific platform.
static() WebMessageChannel
Provide static access.