Kevin Moore

Results 832 comments of Kevin Moore

Try this for now ```dart import 'dart:async'; import 'dart:js_interop'; import 'package:web/web.dart'; class MessagePortStreamChannel { MessagePortStreamChannel({required this.port}) { _onReceiveMessageSubscription = port.onMessage.listen((message) { _in.add(message.data as String); }); _onPostMessageSubscription = _out.stream.listen(port.postMessage); } final...

You might have to translate the StreamChannel from `JSAny` or similar. I'm not sure...

FYI: you don't need to use `@JS('whatever')` if the name is the same! You don't need the annotation at all!

Great question! @srujzs @sigmundch – have we hit this in other migrations?

We just say "install the extension" – we don't give any guidance!