remove method

void remove(
  1. KeyType key,
  2. ChildType child
)

Remove this child from the child list.

Requires the child to be present in the child list.

Implementation

void remove(KeyType key, ChildType child) {
  final data = _data[key]!;
  data._removeFromChildList(child);
  dropChild(child);
  // if (data._childCount == 0) _data.remove(key);
}