Painter constructor

Painter({
  1. required double paintWidth,
  2. double? progressPercent,
  3. double? startAngle,
  4. required Color trackColor,
})

Implementation

Painter({
  required this.paintWidth,
  this.progressPercent,
  this.startAngle,
  required this.trackColor,
}) : trackPaint =
         Paint()
           ..color = trackColor
           ..style = PaintingStyle.stroke
           ..strokeWidth = paintWidth
           ..strokeCap = StrokeCap.round;