@@ -15,14 +15,6 @@ part of dart.ui;
15
15
// Painting APIs will also warn about arguments representing NaN coordinates,
16
16
// which can not be rendered by Skia.
17
17
18
- // Update this list when changing the list of supported codecs.
19
- /// {@template dart.ui.imageFormats}
20
- /// JPEG, PNG, GIF, Animated GIF, WebP, Animated WebP, BMP, and WBMP. Additional
21
- /// formats may be supported by the underlying platform. Flutter will
22
- /// attempt to call platform API to decode unrecognized formats, and if the
23
- /// platform API supports decoding the image Flutter will be able to render it.
24
- /// {@endtemplate}
25
-
26
18
bool _rectIsValid (Rect rect) {
27
19
assert (rect != null , 'Rect argument was null.' );
28
20
assert (! rect.hasNaN, 'Rect argument contained a NaN value.' );
@@ -2029,7 +2021,14 @@ class Codec extends NativeFieldWrapperClass1 {
2029
2021
///
2030
2022
/// The `list` parameter is the binary image data (e.g a PNG or GIF binary data).
2031
2023
/// The data can be for either static or animated images. The following image
2032
- /// formats are supported: {@macro dart.ui.imageFormats}
2024
+ /// formats are supported:
2025
+ // Update this list when changing the list of supported codecs.
2026
+ /// {@template dart.ui.imageFormats}
2027
+ /// JPEG, PNG, GIF, Animated GIF, WebP, Animated WebP, BMP, and WBMP. Additional
2028
+ /// formats may be supported by the underlying platform. Flutter will
2029
+ /// attempt to call platform API to decode unrecognized formats, and if the
2030
+ /// platform API supports decoding the image Flutter will be able to render it.
2031
+ /// {@endtemplate}
2033
2032
///
2034
2033
/// The `targetWidth` and `targetHeight` arguments specify the size of the
2035
2034
/// output image, in image pixels. If they are not equal to the intrinsic
0 commit comments