putIfAbsent method

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

Implementation

V putIfAbsent(K key, V Function() ifAbsent) => _lruMap.putIfAbsent(key, () => _createNewNode(key, ifAbsent.call())).value;