RingPainter constructor

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

Implementation

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