WebMessageChannel class Null safety

The representation of the HTML5 message channels.

Constructors

WebMessageChannel({required String id, required WebMessagePort port1, required WebMessagePort port2})

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
id String
Message Channel ID used internally.
final
port1 WebMessagePort
The first WebMessagePort object of the channel.
final
port2 WebMessagePort
The second WebMessagePort object of the channel.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

handleMethod(MethodCall call) Future
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

fromMap(Map<String, dynamic>? map) WebMessageChannel?