Slider constructor

const Slider({
  1. Key? key,
  2. required double value,
  3. required ValueChanged<double> onChanged,
  4. ValueChanged<double>? onChangeStart,
  5. ValueChanged<double>? onChangeEnd,
  6. double min = 0.0,
  7. double max = 1.0,
  8. int? divisions,
  9. Color? activeColor,
  10. Color? inactiveColor,
  11. String? label,
})

Implementation

const Slider({
  super.key,
  required this.value,
  required this.onChanged,
  this.onChangeStart,
  this.onChangeEnd,
  this.min = 0.0,
  this.max = 1.0,
  this.divisions,
  this.activeColor,
  this.inactiveColor,
  this.label,
});