We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1565b9c + 426277e commit cbd1f6eCopy full SHA for cbd1f6e
lib/src/utils.dart
@@ -369,7 +369,7 @@ Future<Iterable<F>> mapAsync<E, F>(
369
/// same key.
370
Future<V> putIfAbsentAsync<K, V>(
371
Map<K, V> map, K key, Future<V> ifAbsent()) async {
372
- if (map.containsKey(key)) return map[key]!;
+ if (map.containsKey(key)) return map[key] as V;
373
var value = await ifAbsent();
374
map[key] = value;
375
return value;
0 commit comments