removeWhere method

IMap<K, V> removeWhere(
  1. bool predicate(
    1. K key,
    2. V value
    )
)

Returns a new map containing the current map minus the entries that satisfy the given predicate. However, if nothing is removed, it will return the current map (same instance).

Implementation

IMap<K, V> removeWhere(bool Function(K key, V value) predicate) {
  M<K, V> result = _m.removeWhere(predicate);
  return identical(result, _m) ? this : IMap<K, V>._unsafe(result, config: config);
}