remove method

  1. @override
bool remove(
  1. Object? key,
  2. V? value
)
inherited

Removes the association between the given key and value. Returns true if the association existed, false otherwise.

Implementation

@override
bool remove(Object? key, V? value) {
  if (!_map.containsKey(key)) return false;
  bool removed = _remove(_map[key]!, value);
  if (removed && _map[key]!.isEmpty) _map.remove(key);
  return removed;
}