WebMessageChannel constructor

WebMessageChannel({
  1. required String id,
  2. required WebMessagePort port1,
  3. required WebMessagePort port2,
})

Disposes the web message channel.

Implementation

WebMessageChannel(
    {required String id,
    required WebMessagePort port1,
    required WebMessagePort port2})
    : this.fromPlatformCreationParams(
          params: PlatformWebMessageChannelCreationParams(
              id: id, port1: port1.platform, port2: port2.platform));