drawCircle function Null safety

void drawCircle(
  1. Path path,
  2. double x,
  3. double y,
  4. double width,
  5. double height
)

Draw the circle shape marker

Implementation

void drawCircle(Path path, double x, double y, double width, double height) {
  path.addArc(
      Rect.fromLTRB(
          x - width / 2, y - height / 2, x + width / 2, y + height / 2),
      0.0,
      2 * math.pi);
}