arc abstract method

void arc({
  1. Rect? rect,
  2. Color? color,
  3. double? strokeWidth,
  4. bool? hasMaskFilter,
  5. PaintingStyle? style,
  6. StrokeCap? strokeCap,
})

Indicates that an arc is expected next.

The next arc is examined. Any arguments that are passed to this method are compared to the actual Canvas.drawArc call's paint argument, and any mismatches result in failure.

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

Any calls made between the last matched call (if any) and the Canvas.drawArc 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 arc({ Rect? rect, Color? color, double? strokeWidth, bool? hasMaskFilter, PaintingStyle? style, StrokeCap? strokeCap });