write static method
Add line. With now true, write everything at once.
Lines that came before go first, so the order stays.
Implementation
static void write(String line, {bool now = false}) {
_buffer.writeln(line);
if (now || _buffer.length > 64 * 1024) {
flush();
} else {
_timer ??= Timer(const Duration(milliseconds: 20), flush);
}
}