PortToChannel extension
Extension to transform a raw MessagePort
from web workers into a Dart
StreamChannel
.
- on
-
- dynamic
Methods
-
channel(
{bool explicitClose = false}) → StreamChannel< Object?> -
Available on dynamic, provided by the PortToChannel extension
Converts this port to a two-way communication channel, exposed as aStreamChannel
.