未验证 提交 1c35cc64 编写于 作者: J Jonah Williams 提交者: GitHub

[null-safety] fix type declaration of Picutre._toImage (#21942)

Fixes flutter/flutter#68377

Should be a nullable string. Looks like --null-assertions does not cover the native binding code.
上级 56d3da33
......@@ -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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册