From 7a4234a418a60c4a667b1ab4e5a2f6900fe5c2d5 Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Sat, 17 Oct 2020 11:02:19 -0700 Subject: [PATCH] [null-safety] fix type declaration of Picutre._toImage (flutter/engine#21942) Fixes flutter/flutter#68377 Should be a nullable string. Looks like --null-assertions does not cover the native binding code. --- engine/src/flutter/lib/ui/painting.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/flutter/lib/ui/painting.dart b/engine/src/flutter/lib/ui/painting.dart index a8ebd7a632..1ba835c509 100644 --- a/engine/src/flutter/lib/ui/painting.dart +++ b/engine/src/flutter/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.