WebMessageChannel class

Disposes the web message channel.

Constructors

WebMessageChannel({required String id, required WebMessagePort port1, required WebMessagePort port2})
Disposes the web message channel.
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
Message Channel ID used internally.
no setter
platform → PlatformWebMessageChannel
Implementation of PlatformWebMessageChannel for the current platform.
final
port1 → WebMessagePort
The first PlatformWebMessagePort object of the channel.
no setter
port2 → WebMessagePort
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
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?