whereValues method

Map<K, V> whereValues(
  1. bool test(
    1. V value
    )
)

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

Implementation

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