flush method

Future<void> flush()

Manually flush all queued events

Implementation

Future<void> flush() async {
  if (_eventQueue.isNotEmpty) {
    await _sendBatchEvents(List.from(_eventQueue));
    _eventQueue.clear();
  }
}