Slider constructor

const Slider({
  1. Key? key,
  2. required SliderValue value,
  3. ValueChanged<SliderValue>? onChanged,
  4. ValueChanged<SliderValue>? onChangeStart,
  5. ValueChanged<SliderValue>? onChangeEnd,
  6. double min = 0,
  7. double max = 1,
  8. int? divisions,
  9. SliderValue? hintValue,
  10. double? increaseStep,
  11. double? decreaseStep,
})

Implementation

const Slider({
  super.key,
  required this.value,
  this.onChanged,
  this.onChangeStart,
  this.onChangeEnd,
  this.min = 0,
  this.max = 1,
  this.divisions,
  this.hintValue,
  this.increaseStep,
  this.decreaseStep,
}) : assert(min <= max);