Skip to content

Commit d12554a

Browse files
authored
Revert "Throw an exception in Image.toByteData rather than hang forever. (flutter#15152)"
This reverts commit 73f144e.
1 parent f3bcd2f commit d12554a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/web_ui/lib/src/engine/html_image_codec.dart

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,6 @@ class HtmlImage implements ui.Image {
136136
}
137137
}
138138

139-
// TODO(het): Support this for asset images and images generated from
140-
// `Picture`s.
141139
/// Returns an error message on failure, null on success.
142-
String _toByteData(int format, Callback<Uint8List> callback) {
143-
callback(null);
144-
return 'Image.toByteData is not supported in Flutter for Web';
145-
}
140+
String _toByteData(int format, Callback<Uint8List> callback) => null;
146141
}

0 commit comments

Comments
 (0)