WebMessageChannel constructor

WebMessageChannel({
  1. required String id,
  2. required WebMessagePort port1,
  3. 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,
       ),
     );