flushAnalytics method

Future<void> flushAnalytics()

Flushes both queues; neither service references the other.

Implementation

Future<void> flushAnalytics() => Future.wait([
      analyticsService.flush(),
      appEventsService.flush(),
    ]);