remove method

bool remove (Object element)
override

Removes value from the set. Returns true if value was in the set. Returns false otherwise. The method has no effect if value value was not in the set.

Implementation

bool remove(Object element) {
  if (element != null && element is! V) return false;
  var key = _keyForValue(element as V);

  if (!_baseMap.containsKey(key)) return false;
  _baseMap.remove(key);
  return true;
}