On this page
IOSink constructor
- StreamConsumer<
List< int>> target, - {Encoding encoding = utf8}
Create an IOSink that outputs to a target StreamConsumer of bytes.
Text written to StreamSink methods is encoded to bytes using encoding before being output on target.
Implementation
factory IOSink(StreamConsumer<List<int>> target,
{Encoding encoding = utf8}) =>
new _IOSinkImpl(target, encoding);
© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-io/IOSink/IOSink.html