SubZeroSlider constructor
const
SubZeroSlider({
- Key? key,
- required double value,
- double min = 0.0,
- double max = 1.0,
- int? divisions,
- ValueChanged<
double> ? onChanged, - ValueChanged<
double> ? onChangeStart, - ValueChanged<
double> ? onChangeEnd, - bool showTooltip = true,
- bool showTickMarks = false,
- String valueFormatter()?,
- String? minLabel,
- String? maxLabel,
- bool enabled = true,
- Color? activeTrackColor,
- Color? inactiveTrackColor,
- Color? thumbColor,
- double trackHeight = 4.0,
- double thumbRadius = 12.0,
Implementation
const SubZeroSlider({
super.key,
required this.value,
this.min = 0.0,
this.max = 1.0,
this.divisions,
this.onChanged,
this.onChangeStart,
this.onChangeEnd,
this.showTooltip = true,
this.showTickMarks = false,
this.valueFormatter,
this.minLabel,
this.maxLabel,
this.enabled = true,
this.activeTrackColor,
this.inactiveTrackColor,
this.thumbColor,
this.trackHeight = 4.0,
this.thumbRadius = 12.0,
}) : assert(min <= max, 'min must be less than or equal to max'),
assert(value >= min && value <= max, 'value must be between min and max');