Map<K, V> where(bool Function(K key, V value) test) { final list = entries.where((element) => test(element.key, element.value)).toList(); return Map.fromEntries(list); }