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