SliderProps.range constructor
const
SliderProps.range({
- required double minValue,
- required double maxValue,
- double min = 0,
- double max = 100,
- double? step,
- String? label,
- bool showValue = true,
- String? valuePrefix,
- String? valueSuffix,
- int valueDecimals = 0,
- SliderVariant variant = SliderVariant.primary,
- ComponentSize size = ComponentSize.md,
- bool showSteps = false,
- bool disabled = false,
- void onRangeChanged()?,
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;