ProgressPainter constructor

ProgressPainter(
  1. Animation<double> value,
  2. double height,
  3. double width,
  4. Color progressColor,
  5. Color? backgroundColor,
)

Implementation

ProgressPainter(this.value, this.height, this.width, this.progressColor,
    this.backgroundColor) {
  bgPaint = Paint()..color = backgroundColor ?? progressColor.withAlpha(90);
  progressPaint = Paint()..color = progressColor;
}