drawCircle method

void drawCircle(
  1. double x,
  2. double y,
  3. double radius, {
  4. int segments = 32,
  5. ColorList? colors,
})

Draws a filled circle centered at (x, y) with the given radius.

  • x: The x-coordinate of the center of the circle.
  • y: The y-coordinate of the center of the circle.
  • radius: The radius of the circle.
  • segments: The number of line segments to use. Defaults to 32.
  • colors: An optional list of Color objects for coloring (see drawOval).

Implementation

void drawCircle(double x, double y, double radius, {int segments = 32, ColorList? colors}) {
  drawOval(x, y, radius, radius, segments: segments, colors: colors);
}