Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 1c35cc6

Browse files
author
Jonah Williams
authored
[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.
1 parent 56d3da3 commit 1c35cc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ui/painting.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4689,7 +4689,7 @@ class Picture extends NativeFieldWrapperClass2 {
46894689
);
46904690
}
46914691

4692-
String _toImage(int width, int height, _Callback<_Image> callback) native 'Picture_toImage';
4692+
String? _toImage(int width, int height, _Callback<_Image> callback) native 'Picture_toImage';
46934693

46944694
/// Release the resources used by this object. The object is no longer usable
46954695
/// after this method is called.

0 commit comments

Comments
 (0)