removeByKey method
Remove a specific 'StateXController' by its unique 'key' identifier.
Implementation
@override
bool removeByKey(String? id) {
bool remove = id != null;
if (remove) {
remove = _mapControllerById.containsKey(id);
if (remove) {
_mapControllerById.remove(id);
_mapControllerTypes.remove(id);
}
}
return remove;
}