flush method
void
flush()
Writes any buffered lines now (also driven by the flush timer).
Implementation
void flush() {
if (_pending.isEmpty) return;
final batch = _pending.toString();
_pending.clear();
try {
_file.writeAsStringSync(batch, mode: FileMode.append, flush: true);
} catch (_) {
// A broken trace path never breaks the host.
}
}