Slider constructor

const Slider({
  1. Key? key,
  2. required int value,
  3. int min = 0,
  4. int max = 100,
  5. int? divisions,
  6. required ValueChanged<int>? onChanged,
  7. Color? activeColor,
  8. Color? inactiveColor,
  9. Color? thumbColor,
  10. String? label,
  11. FocusNode? focusNode,
})

Creates a Slider with the given value and onChanged callback.

Implementation

const Slider({
  super.key,
  required this.value,
  this.min = 0,
  this.max = 100,
  this.divisions,
  required this.onChanged,
  this.activeColor,
  this.inactiveColor,
  this.thumbColor,
  this.label,
  this.focusNode,
});