writeln method
void
writeln(
- dynamic str
Use this to write a string with a trailing newline ('\n'). Whether in mock mode or with real stdout.
Implementation
void writeln(str) {
if (mock) {
_buffer += str + '\n';
_flush();
} else {
stdout.writeln(str);
}
}