flush method

  1. @override
Future<ResultDart<void, TelemetryException>> flush()
override

Flushes all pending telemetry data.

Returns ResultDart with success or TelemetryException on error.

Implementation

@override
Future<ResultDart<void, TelemetryException>> flush() async {
  await _repository.flush();
  return const Success(unit);
}