removeGroup method

void removeGroup({
  1. Entity groupEntity = const DefaultEntity(),
})

Removes the TDependencyGroup with the specified groupEntity from the state.

Implementation

void removeGroup({Entity groupEntity = const DefaultEntity()}) {
  final group = _state.remove(groupEntity);
  if (group != null) {
    for (final typeEntity in group.keys) {
      _detachFromTypeIndex(typeEntity, groupEntity);
    }
  }
  _fireOnChange();
}