flushAll static method

Future<void> flushAll()

Force-flushes all pending events (call on app lifecycle events).

Implementation

static Future<void> flushAll() async {
  if (_pendingFlows.isNotEmpty || _pendingScreens.isNotEmpty) {
    await _flush();
  }
}