drawCircle method
Draws a circle with the given radius
centered at (x
, y
).
The circle is added to the current path as an oval with width and height equal to radius * 2 and the center at the specified coordinates.
The method returns this, which allows for method chaining.
Implementation
Graphics drawCircle(double x, double y, double radius) {
_path!.addOval(
Rect.fromCircle(center: Offset(x, y), radius: radius),
);
return this;
}