uninstall<T extends NeuronController> static method
Disposes and removes a controller of type T if present.
Implementation
static void uninstall<T extends NeuronController>() {
if (_registry.containsKey(T)) {
final controller = _registry[T]!;
if (NeuronDebugRegistry.instance.isEnabled) {
NeuronDebugRegistry.instance.unregisterController(controller);
}
controller.dispose();
_registry.remove(T);
}
}