StringConversionSink.fromStringSink constructor

StringConversionSink.fromStringSink(
  1. 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.

Implementation

factory StringConversionSink.fromStringSink(StringSink sink) =
    _StringSinkConversionSink<StringSink>;

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