SliderProps constructor

const SliderProps({
  1. double value = 0,
  2. double min = 0,
  3. double max = 100,
  4. double? step,
  5. String? label,
  6. bool showValue = true,
  7. String? valuePrefix,
  8. String? valueSuffix,
  9. int valueDecimals = 0,
  10. SliderVariant variant = SliderVariant.primary,
  11. ComponentSize size = ComponentSize.md,
  12. bool showSteps = false,
  13. bool disabled = false,
  14. void onChanged(
    1. double
    )?,
  15. bool isRange = false,
  16. double? rangeMin,
  17. double? rangeMax,
  18. void onRangeChanged(
    1. double min,
    2. double max
    )?,
})

Implementation

const SliderProps({
  this.value = 0,
  this.min = 0,
  this.max = 100,
  this.step,
  this.label,
  this.showValue = true,
  this.valuePrefix,
  this.valueSuffix,
  this.valueDecimals = 0,
  this.variant = SliderVariant.primary,
  this.size = ComponentSize.md,
  this.showSteps = false,
  this.disabled = false,
  this.onChanged,
  this.isRange = false,
  this.rangeMin,
  this.rangeMax,
  this.onRangeChanged,
});