drawCircle function

void drawCircle(
  1. Canvas canvas,
  2. Offset offset,
  3. double radius,
  4. Color color,
  5. Paint painter, [
  6. bool isDot = false,
])

Implementation

void drawCircle(
    Canvas canvas, Offset offset, double radius, Color color, Paint painter,
    [bool isDot = false]) {
  Path _path = getCirclePath(offset, radius);
  Paint _painter = painter
    ..color = color
    ..style = isDot ? PaintingStyle.fill : PaintingStyle.stroke;
  canvas.drawPath(_path, _painter);
}