writeLine method
Receives one formatted trace body (no trailing newline).
Implementation
@override
void writeLine(String line) {
_pending
..write(DateTime.now().toIso8601String())
..write(' ')
..write(line)
..write('\n');
if (_pending.length >= _kFlushThresholdBytes) flush();
}