MyPainter constructor

MyPainter(
  1. List<BallPoint> points,
  2. bool isShowLine
)

Implementation

MyPainter(this.points, this.isShowLine) {
  pointPaint = Paint()
    ..strokeWidth = 8
    ..strokeCap = StrokeCap.round
    ..color = Colors.redAccent
    ..style = PaintingStyle.fill;

  linePaint = Paint()
    ..strokeWidth = 8
    ..strokeCap = StrokeCap.round
    ..color = Colors.redAccent
    ..style = PaintingStyle.fill;
}