InteractiveSliderPainter constructor

InteractiveSliderPainter({
  1. required ValueNotifier<double> progress,
  2. required Color color,
  3. Gradient? gradient,
  4. required GradientSize gradientSize,
  5. int? numberOfSegments,
  6. required Color segmentDividerColor,
  7. required double segmentDividerWidth,
})

Implementation

InteractiveSliderPainter({
  required this.progress,
  required Color color,
  this.gradient,
  required this.gradientSize,
  this.numberOfSegments,
  required this.segmentDividerColor,
  required this.segmentDividerWidth,
})  : _rectPaint = Paint()..color = color,
      super(repaint: progress);