We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Image.toByteData
1 parent 155ee3c commit dba9cceCopy full SHA for dba9cce
lib/web_ui/lib/src/engine/html_image_codec.dart
@@ -136,6 +136,11 @@ class HtmlImage implements ui.Image {
136
}
137
138
139
+ // TODO(het): Support this for asset images and images generated from
140
+ // `Picture`s.
141
/// Returns an error message on failure, null on success.
- String _toByteData(int format, Callback<Uint8List> callback) => null;
142
+ String _toByteData(int format, Callback<Uint8List> callback) {
143
+ callback(null);
144
+ return 'Image.toByteData is not supported in Flutter for Web';
145
+ }
146
0 commit comments