CirclePainter constructor

CirclePainter({
  1. required double progressNumber,
  2. required int maxNumber,
  3. required double fraction,
  4. required Animation<double> animation,
  5. Color? backgroundColor,
  6. Color? progressColor,
})

The CirclePainter constructor has four required parameters that are progressNumber, maxNumber, fraction and animation.

Implementation

CirclePainter(
    {required this.progressNumber,
    required this.maxNumber,
    required this.fraction,
    required this.animation,
    this.backgroundColor,
    this.progressColor}) {
  _paint = Paint()
    ..color = Colors.white
    ..strokeWidth = 10.0
    ..style = PaintingStyle.stroke
    ..strokeCap = StrokeCap.round;
}