removeByKey method

  1. @override
bool removeByKey(
  1. String? id
)
inherited

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;
}