removeController method
Removes a controller from the manager without disposing it
This method unregisters a controller from the manager but does not dispose its resources. The controller remains valid and can be used directly or re-registered later.
@param name The name of the controller to remove @return The removed controller if found, null otherwise
Implementation
WebFController? removeController(String name) {
final instance = _controllersByName.remove(name);
if (instance != null) {
_recentlyUsedControllers.removeWhere((element) => element == name);
_attachedControllers.removeWhere((element) => element == name);
return instance.controller;
}
return null;
}