whereKeys method

Map<K, V> whereKeys(
  1. bool test(
    1. K key
    )
)

Returns a Map containing all key-value pairs with keys passing the given test.

Implementation

Map<K, V> whereKeys(bool Function(K key) test) =>
    Map.fromEntries(entries.where((entry) => test(entry.key)));