Writer.fromStringSink constructor

Writer.fromStringSink(
  1. StringSink sink,
  2. {Encoding encoding,
  3. 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;