SliderProps.range constructor

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

Implementation

const SliderProps.range({
  required double minValue,
  required double maxValue,
  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.onRangeChanged,
})  : value = 0,
      onChanged = null,
      isRange = true,
      rangeMin = minValue,
      rangeMax = maxValue;