Slider constructor

const Slider({
  1. Key? id,
  2. required SliderState state,
  3. num min = 0,
  4. num max = 100,
  5. num step = 1,
  6. num? pageStep,
  7. void onChanged(
    1. num value
    )?,
  8. String trackChar = '─',
  9. String fillChar = '━',
  10. String handleChar = '●',
  11. Style? trackStyle,
  12. Style? fillStyle,
  13. Style? handleStyle,
  14. bool showValue = true,
  15. String formatValue(
    1. num value
    )?,
})

Implementation

const Slider({
  Key? id,
  required this.state,
  this.min = 0,
  this.max = 100,
  this.step = 1,
  this.pageStep,
  this.onChanged,
  this.trackChar = '─',
  this.fillChar = '━',
  this.handleChar = '●',
  this.trackStyle,
  this.fillStyle,
  this.handleStyle,
  this.showValue = true,
  this.formatValue,
})  : _id = id,
      assert(min < max, 'Slider min must be < max'),
      assert(step > 0, 'Slider step must be > 0');