WebMessageChannel constructor
- required String id,
- required WebMessagePort port1,
- required WebMessagePort port2,
The representation of the HTML5 message channels.
Implementation
WebMessageChannel({
required String id,
required WebMessagePort port1,
required WebMessagePort port2,
}) : this.fromPlatformCreationParams(
params: PlatformWebMessageChannelCreationParams(
id: id,
port1: port1.platform,
port2: port2.platform,
),
);