mergeIfAbsent method
Implementation
void mergeIfAbsent(Map<K, V>? other) {
if (other == null) {
return;
}
other.forEach(
(key, value) {
putIfAbsent(key, () => value);
},
);
}
void mergeIfAbsent(Map<K, V>? other) {
if (other == null) {
return;
}
other.forEach(
(key, value) {
putIfAbsent(key, () => value);
},
);
}