setWhere method

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

Returns a copy of this map replacing the values of all key/value pairs fulfilling the given predicate with value.

See putWhere.

Implementation

ImmortalMap<K, V> setWhere(
  bool Function(K key, V value) predicate,
  V value,
) =>
    putWhere(predicate, value);