writeln method

void writeln([
  1. Object? obj
])

Writes the given object to the buffer, followed by a newline.

If no object is provided, only a newline is written.

Implementation

void writeln([Object? obj]) {
  write(obj);
  _buffer.writeln();
}