flush method
Waits until everything logged so far was handed to the desktop's socket (useful before a CLI program exits). False on timeout / no connection.
Implementation
Future<bool> flush([Duration timeout = const Duration(seconds: 5)]) {
if (_disposed) return Future<bool>.value(false);
return _transport.flush(timeout);
}