write method

void write(
  1. String string
)

Writes the provided string to the sink.

This method is non-blocking and may be buffered.

Implementation

void write(String string) {
  _writer.write(_encoding.encode(string));
}