disposeAllServices static method

  1. @visibleForTesting
void disposeAllServices()

Implementation

@visibleForTesting
static void disposeAllServices() {
  // Work on a snapshot to avoid concurrent modification.
  final services = _activeServices.toList(growable: false);
  ZenLogger.logDebug('Disposing ${services.length} services');
  for (final s in services) {
    // Each dispose() removes itself; no need to clear afterward.
    s.dispose();
  }
}