Slider constructor

const Slider({
  1. Key? key,
  2. required double value,
  3. required ValueChanged<double>? onChanged,
  4. double min = 0.0,
  5. double max = 100.0,
  6. int? divisions,
  7. String? label,
  8. Color? activeColor,
  9. Color? inactiveColor,
  10. bool showMinMaxLabels = false,
  11. String prefix = '',
  12. String suffix = '',
})

Implementation

const Slider({
  super.key,
  required this.value,
  required this.onChanged,
  this.min = 0.0,
  this.max = 100.0,
  this.divisions,
  this.label,
  this.activeColor,
  this.inactiveColor,
  this.showMinMaxLabels = false,
  this.prefix = '',
  this.suffix = '',
});