whereEntries method

Map<K, V> whereEntries(
  1. bool predicate(
    1. K k,
    2. V v
    )
)

Implementation

Map<K, V> whereEntries(bool predicate(K k, V v)) {
  return Map.fromEntries(entries.where((e) => predicate(e.key, e.value)));
}