computeIfPresentAsync method
Implementation
Future<V> computeIfPresentAsync(
K key, Future<V> Function(K key, V value) ifPresent) async {
if (containsKey(key)) {
this[key] = await ifPresent(key, this[key]!);
}
return this[key]!;
}
Future<V> computeIfPresentAsync(
K key, Future<V> Function(K key, V value) ifPresent) async {
if (containsKey(key)) {
this[key] = await ifPresent(key, this[key]!);
}
return this[key]!;
}