image abstract method
Indicates that an image is expected next.
The next call to Canvas.drawImage is examined, and its arguments compared to those passed to this method.
If no call to Canvas.drawImage was made, then this results in failure.
Any calls made between the last matched call (if any) and the Canvas.drawImage call are ignored.
The Paint-related arguments (color
, strokeWidth
, hasMaskFilter
,
style
) are compared against the state of the Paint object after the
painting has completed, not at the time of the call. If the same Paint
object is reused multiple times, then this may not match the actual
arguments as they were seen by the method.
Implementation
void image({ ui.Image? image, double? x, double? y, Color? color, double? strokeWidth, bool? hasMaskFilter, PaintingStyle? style });