Slider constructor
const
Slider({
- Key? id,
- required SliderState state,
- num min = 0,
- num max = 100,
- num step = 1,
- num? pageStep,
- void onChanged(
- num value
- String trackChar = '─',
- String fillChar = '━',
- String handleChar = '●',
- Style? trackStyle,
- Style? fillStyle,
- Style? handleStyle,
- bool showValue = true,
- String formatValue(
- num value
Implementation
const Slider({
Key? id,
required this.state,
this.min = 0,
this.max = 100,
this.step = 1,
this.pageStep,
this.onChanged,
this.trackChar = '─',
this.fillChar = '━',
this.handleChar = '●',
this.trackStyle,
this.fillStyle,
this.handleStyle,
this.showValue = true,
this.formatValue,
}) : _id = id,
assert(min < max, 'Slider min must be < max'),
assert(step > 0, 'Slider step must be > 0');