clear method
Set all pixels in the image to the given color
. If no color is provided
the image will be initialized to 0.
Implementation
void clear([Color? color]) => data?.clear(color);
Set all pixels in the image to the given color
. If no color is provided
the image will be initialized to 0.
void clear([Color? color]) => data?.clear(color);