W3cubDocs

/Dart 2

startChunkedConversion method

StringConversionSink startChunkedConversion (Sink<List<int>> sink)
override

Starts a chunked conversion.

The converter works more efficiently if the given sink is a ByteConversionSink.

Implementation

StringConversionSink startChunkedConversion(Sink<List<int>> sink) {
  return _Utf8EncoderSink(
      sink is ByteConversionSink ? sink : ByteConversionSink.from(sink));
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-convert/Utf8Encoder/startChunkedConversion.html