Slider constructor
const
Slider({
- Key? key,
- required double value,
- required ValueChanged<
double> ? onChanged, - ValueChanged<
double> ? onChangeStart, - ValueChanged<
double> ? onChangeEnd, - double min = 0.0,
- double max = 100.0,
- int? divisions,
- SliderThemeData? style,
- String? label,
- FocusNode? focusNode,
- bool vertical = false,
- bool autofocus = false,
Implementation
const Slider({
Key? key,
required this.value,
required this.onChanged,
this.onChangeStart,
this.onChangeEnd,
this.min = 0.0,
this.max = 100.0,
this.divisions,
this.style,
this.label,
this.focusNode,
this.vertical = false,
this.autofocus = false,
}) : assert(value >= min && value <= max),
assert(divisions == null || divisions > 0),
super(key: key);