putIfAbsent method

V putIfAbsent(
  1. K key,
  2. V ifAbsent()
)

Implementation

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