RingPainter constructor

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

Implementation

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