removeWhere method

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

Returns a copy of this map where all entries that satisfy the given predicate are removed.

Implementation

ImmortalMap<K, V> removeWhere(bool Function(K key, V value) predicate) =>
    _mutateAsMap((map) => map..removeWhere(predicate));