compute method
V
compute(
- K key,
- V compute(
- K key,
- V? value
Implementation
V compute(K key, V Function(K key, V? value) compute) {
this[key] = compute(key, this[key]);
return this[key]!;
}