ImageSliderPainter constructor

ImageSliderPainter({
  1. required double sliderPosition,
  2. required double sliderPercentage,
  3. required Color color,
  4. required double imageWidth,
  5. required Color borderColor,
  6. required double strokeWidth,
  7. required double anchorWidth,
  8. required double borderWidth,
  9. required int len,
})

Implementation

ImageSliderPainter({
  required this.sliderPosition,
  required this.sliderPercentage,
  required this.color,
  required this.imageWidth,
  required this.borderColor,
  required this.strokeWidth,
  required this.anchorWidth,
  required this.borderWidth,
  required this.len,
})  : fillPainter = Paint()
        ..color = color
        ..style = PaintingStyle.fill,
      borderFillPainter = Paint()
        ..color = borderColor
        ..style = PaintingStyle.fill,
      sliderPainter = Paint()
        ..color = color
        ..style = PaintingStyle.stroke
        ..strokeWidth = strokeWidth,
      borderSliderPainter = Paint()
        ..color = borderColor
        ..style = PaintingStyle.stroke
        ..strokeWidth = ((imageWidth) + (borderWidth * 2)),
      imagePainter = Paint();