From d479782499f4f831d56fcf4a1c48ce9f2609c90a Mon Sep 17 00:00:00 2001 From: jonahwilliams Date: Fri, 16 Oct 2020 19:37:30 -0700 Subject: [PATCH] [null-safety] fix type declaration of Picutre._toImage --- lib/ui/painting.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ui/painting.dart b/lib/ui/painting.dart index a8ebd7a632004..1ba835c509a0b 100644 --- a/lib/ui/painting.dart +++ b/lib/ui/painting.dart @@ -4689,7 +4689,7 @@ class Picture extends NativeFieldWrapperClass2 { ); } - String _toImage(int width, int height, _Callback<_Image> callback) native 'Picture_toImage'; + String? _toImage(int width, int height, _Callback<_Image> callback) native 'Picture_toImage'; /// Release the resources used by this object. The object is no longer usable /// after this method is called.