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