clearAll method

  1. @visibleForTesting
void clearAll()

Clear all registry state. PROTECTED: Only available in debug/test environments.

Implementation

@visibleForTesting
void clearAll() {
  // Only allow in debug mode to prevent accidental production resets
  if (!kDebugMode) {
    AirLogger.warning('clearAll() called in release mode - ignored');
    return;
  }

  _services.clear();
  _sharedData.clear();
  _dataListeners.clear();
  _relationshipsWithTimestamp.clear();
  _interactions.clear();
  notifyListeners();
}