menu
drift package
documentation
web.dart
WebPortToChannel extension
WebPortToChannel extension
dark_mode
light_mode
WebPortToChannel
extension
Extension to transform a raw
MessagePort
from web workers into a Dart
StreamChannel
.
on
MessagePort
Methods
channel
(
{
bool
explicitClose
=
false
,
bool
webNativeSerialization
=
false
})
→ StreamChannel
<
Object
?
>
Converts this port to a two-way communication channel, exposed as a
StreamChannel
.
drift package
documentation
web
WebPortToChannel extension
drift.web library