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

Implementation

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