flush method
Flushes all pending telemetry data.
Should be called before shutting down application. Returns Future<void> to allow for async repository operations.
Implementation
@override
Future<void> flush() async {
await safely('flush', _repository.flush);
}