drawInitialPoint function

void drawInitialPoint(
  1. Canvas canvas,
  2. Size size,
  3. Color color,
  4. double x,
  5. double y,
)

Method used to draw initial point and somethimes to test the draw of the points

Implementation

void drawInitialPoint(
    Canvas canvas, Size size, Color color, double x, double y) {
  if (x == 0) {
    x = 30;
    y = 30;
  }
  final paint = Paint()
    ..color = color
    ..strokeWidth = 3
    ..style = PaintingStyle.fill;
  canvas.drawCircle(Offset(x, size.width - y), 2, paint);
}