image abstract method

void image({
  1. Image? image,
  2. double? x,
  3. double? y,
  4. Color? color,
  5. double? strokeWidth,
  6. bool? hasMaskFilter,
  7. PaintingStyle? style,
})

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 });