MyPainter constructor
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;
}