flush method
Flush all buffered telemetry into the outbox and try to deliver it now (call before the app is backgrounded/killed).
Implementation
Future<void> flush() async {
await events.flush();
await logs.flush();
await replay.flush();
await _outbox.drain();
}