putIfAbsent method

  1. @override
V putIfAbsent(
  1. V ifAbsent()
)
override

Inserts the key-value pair into the map if the key is absent.

If the key is present, the value is not updated.

Returns the value associated with the key after the operation.

Implementation

@override
V putIfAbsent(V Function() ifAbsent) => _value;