streamFromJSReader function
Implementation
Stream<List<int>> streamFromJSReader(
ReadableStreamDefaultReader reader) async* {
while (true) {
final result = await reader.read();
if (result.done) {
break;
}
yield result.value!;
}
}