addIndexIfNotNull method
Implementation
Map<K, V> addIndexIfNotNull(
bool Function(K key, V value, int index) f, K key, V value, int index) {
if (f(key, value, index) && value != null) {
addEntries([MapEntry(key, value)]);
}
return this;
}