Map<K, V> whereValue(bool Function(V value) f) => Map<K, V>.fromEntries(entries.where((e) => f(e.value)));