PortToChannel extension Null safety

Extension to transform a raw MessagePort from web workers into a Dart StreamChannel.

on

Methods

channel() StreamChannel<Object?>
Converts this port to a two-way communication channel, exposed as a StreamChannel. [...]