putIfAbsent method
V
putIfAbsent(
- K key,
- V ifAbsent()
Implementation
V putIfAbsent(K key, V Function() ifAbsent) {
final modifiedValue = value;
final element = modifiedValue.putIfAbsent(key, ifAbsent);
value = modifiedValue;
return element;
}