BackgroundBarPainter constructor

BackgroundBarPainter({
  1. required double widthOfContainer,
  2. required double heightOfContainer,
  3. required Color initialColor,
  4. required Color progressColor,
  5. required double progresPercentage,
})

Implementation

BackgroundBarPainter({
  required this.widthOfContainer,
  required this.heightOfContainer,
  required this.initialColor,
  required this.progressColor,
  required this.progresPercentage,
})  : trackPaint = Paint()
        ..color = initialColor
        ..style = PaintingStyle.fill,
      progressPaint = Paint()
        ..color = progressColor
        ..style = PaintingStyle.fill;