clearAll static method

void clearAll()

Clears all registered controllers and disposes them.

Implementation

static void clearAll() {
  for (final controller in _registry.values) {
    if (NeuronDebugRegistry.instance.isEnabled) {
      NeuronDebugRegistry.instance.unregisterController(controller);
    }
    controller.dispose();
  }
  _registry.clear();
}