getProgressPaint method
Implementation
Paint getProgressPaint() {
if (fillGradient != null && fillColor == null) {
return Paint()
..shader = fillGradient!.createShader(Rect.fromCircle(
center: Offset(radius, radius),
radius: radius,
))
..strokeWidth = strokeWidth
..strokeCap = StrokeCap.round
..blendMode = BlendMode.srcOver
..style = PaintingStyle.stroke;
}
return Paint()
..color = fillColor ?? const Color(0xFFFFE08D)
..strokeWidth = strokeWidth
..strokeCap = StrokeCap.round
..blendMode = BlendMode.srcOver
..style = PaintingStyle.stroke;
}