Transforms the provided stream
.
Returns a new stream with events that are computed from events of the provided stream
.
Implementors of the StreamTransformer interface should document differences from the following expected behavior:
stream
.stream
.stream
."Reasonable time" depends on the transformer and stream. Some transformers, like a "timeout" transformer, might make these operations depend on a duration. Others might not delay them at all, or just by a microtask.
Stream<String> bind(Stream<String> stream) { return new Stream<String>.eventTransformed( stream, (EventSink<String> sink) => new _LineSplitterEventSink(sink)); }
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-convert/LineSplitter/bind.html