Map<K, V> addIf(bool Function(K key, V value) f, K key, V value) { if (f(key, value)) { addEntries([MapEntry(key, value)]); } return this; }