Skip to content

Commit 8defec6

Browse files
authored
Fix nullability issue with Image.network (flutter#22252)
1 parent 14437d6 commit 8defec6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/web_ui/lib/src/ui/painting.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,9 +461,9 @@ String? _instantiateImageCodec(Uint8List list, engine.Callback<Codec> callback)
461461
return null;
462462
}
463463

464-
Future<Codec?> webOnlyInstantiateImageCodecFromUrl(Uri uri,
464+
Future<Codec> webOnlyInstantiateImageCodecFromUrl(Uri uri,
465465
{engine.WebOnlyImageCodecChunkCallback? chunkCallback}) {
466-
return _futurize<Codec?>((engine.Callback<Codec> callback) =>
466+
return _futurize<Codec>((engine.Callback<Codec> callback) =>
467467
_instantiateImageCodecFromUrl(uri, chunkCallback, callback));
468468
}
469469

0 commit comments

Comments
 (0)