diff --git a/lib/ui/compositing.dart b/lib/ui/compositing.dart index d29e5f1a8e57d..1bf7b1fd60a38 100644 --- a/lib/ui/compositing.dart +++ b/lib/ui/compositing.dart @@ -37,7 +37,7 @@ class Scene extends NativeFieldWrapperClass2 { ); } - String _toImage(int width, int height, _Callback<_Image> callback) native 'Scene_toImage'; + String? _toImage(int width, int height, _Callback<_Image> callback) native 'Scene_toImage'; /// Releases the resources used by this scene. ///