writeln method

void writeln([
  1. String? str
])

Write a string plus a linefeed to output in the compiler's encoding.

Implementation

void writeln([String? str]) {
  if (str != null)
    write(str);
  write("\n");
}