onMessage property
EventStream<PortOnMessageEvent>
get
onMessage
This event is fired when $(ref:Port.postMessage postMessage) is called by the other end of the port.
Implementation
EventStream<PortOnMessageEvent> get onMessage =>
_wrapped.onMessage.asStream(($c) => (
JSAny message,
$js.Port port,
) {
return $c(PortOnMessageEvent(
message: message.dartify()!,
port: Port.fromJS(port),
));
});