streamFromInputStream method
Stream<String>
streamFromInputStream(
- Stream<
ParserInput> inputStream, { - OutputParserOptions? options,
override
Streams the output of invoking the Runnable on the given inputStream
.
Implementation
@override
Stream<String> streamFromInputStream(
final Stream<ParserInput> inputStream, {
final OutputParserOptions? options,
}) async* {
if (reduceOutputStream) {
yield await inputStream.map(_parse).reduce((final a, final b) => '$a$b');
} else {
yield* inputStream.map(_parse);
}
}