whereEntries method

Map<K, V> whereEntries(
  1. bool test(
    1. K key,
    2. V value
    )
)

Returns a copy with entries that satisfy test.

Implementation

Map<K, V> whereEntries(bool Function(K key, V value) test) {
  return Map<K, V>.fromEntries(
    entries.where((entry) => test(entry.key, entry.value)),
  );
}