writeln function Null safety

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

Writes string to the console and adds a newline if the string doesn't end in one.

Implementation

void writeln([String string = '']) {
  ip.write(string, newline: true);
}