CsRingPainter constructor

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

Implementation

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