circle abstract method

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

Indicates that a circle is expected next.

The next circle is examined. Any arguments that are passed to this method are compared to the actual Canvas.drawCircle call's arguments and any mismatches result in failure.

If no call to Canvas.drawCircle was made, then this results in failure.

Any calls made between the last matched call (if any) and the Canvas.drawCircle 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 circle({ double? x, double? y, double? radius, Color? color, double? strokeWidth, bool? hasMaskFilter, PaintingStyle? style });