writeLine method

void writeLine(
  1. [String string = '']
)

Writes the provided string to the sink, followed by a newline.

This method is non-blocking and may be buffered.

Implementation

void writeLine([String string = '']) {
  _writer.write(_encoding.encode('$string$_newLine'));
}