where method

BuiltMap<K, V> where(
  1. bool predicate(
    1. K key,
    2. V value
    )
)

Returns a new map with all entries that satisfy the predicate test.

Iterable.where

Implementation

BuiltMap<K, V> where(bool Function(K key, V value) predicate) {
  return rebuild((b) => b.removeWhere((key, value) => !predicate(key, value)));
}