addIfAbsent method
void
addIfAbsent(
- K key,
- V value()
Implementation
void addIfAbsent(K key, V Function() value) {
if (!containsKey(key)) {
this[key] = value();
}
}
void addIfAbsent(K key, V Function() value) {
if (!containsKey(key)) {
this[key] = value();
}
}