S, T>.fromBind constructor
Creates a StreamTransformer based on a
The returned stream transformer uses the
bind argument to implement the
StreamTransformer.bind API and can be used when the transformation is
available as a stream-to-stream function.
final splitDecoded = StreamTransformer<List<int>, String>.fromBind( (stream) => stream.transform(utf8.decoder).transform(LineSplitter()));
@Since("2.1") factory StreamTransformer.fromBind(Stream<T> Function(Stream<S>) bind) = _StreamBindTransformer<S, T>;