Returns a Map containing all key-value pairs with values passing the given test.
test
Map<K, V> whereValues(bool Function(V value) test) => Map.fromEntries(entries.where((entry) => test(entry.value)));