Writer.fromStringSink constructor
- StringSink sink,
- {Encoding encoding,
- Future<
void> onFlush(
Creates a new writer that writes to the provided string sink.
The encoding
is used to convert strings to bytes before writing them to
the underlying writer. The default encoding is UTF-8, but may be changed
to any other supported encoding.
Implementation
factory Writer.fromStringSink(
StringSink sink, {
Encoding encoding,
Future<void> Function()? onFlush,
}) = _StringSinkWriter;