disposeGroup method Null safety

  1. @protected
void disposeGroup(
  1. String name
)

Free all references to objects in a group.

Objects and their associated ids in the group may be kept alive by references from a different group.

Implementation

@protected
void disposeGroup(String name) {
  final Set<_InspectorReferenceData>? references = _groups.remove(name);
  if (references == null) {
    return;
  }
  references.forEach(_decrementReferenceCount);
}