[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.
This commit is contained in:
Jonah Williams
2020-10-17 11:02:19 -07:00
committed by GitHub
parent 20e2a317a7
commit 7a4234a418

View File

@@ -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.