diff --git a/lib/src/utils.dart b/lib/src/utils.dart index 3781fe1ff..70bae9b85 100644 --- a/lib/src/utils.dart +++ b/lib/src/utils.dart @@ -369,7 +369,7 @@ Future> mapAsync( /// same key. Future putIfAbsentAsync( Map map, K key, Future ifAbsent()) async { - if (map.containsKey(key)) return map[key]!; + if (map.containsKey(key)) return map[key] as V; var value = await ifAbsent(); map[key] = value; return value;