StringConversionSink.fromStringSink factory constructor

StringConversionSink.fromStringSink(StringSink sink)

Creates a new instance wrapping the given sink.

Every string that is added to the returned instance is forwarded to the sink. The instance is allowed to buffer and is not required to forward immediately.

Source

factory StringConversionSink.fromStringSink(StringSink sink) =
    _StringSinkConversionSink;

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-convert/StringConversionSink/StringConversionSink.fromStringSink.html