RangeSlider constructor
RangeSlider({
- required RangeValues values,
- ValueCmdCallback<
RangeValues> ? onChanged, - double min = 0.0,
- double max = 1.0,
- int? divisions,
- int width = 28,
- bool enabled = true,
- Color? activeColor,
- Color? inactiveColor,
- Color? thumbColor,
- String rangeTrackChar = '=',
- String inactiveTrackChar = '-',
- String thumbChar = 'o',
- String? label,
- bool autofocus = false,
- String? focusId,
- FocusController? focusController,
- Key? key,
Implementation
RangeSlider({
required this.values,
this.onChanged,
this.min = 0.0,
this.max = 1.0,
this.divisions,
this.width = 28,
this.enabled = true,
this.activeColor,
this.inactiveColor,
this.thumbColor,
this.rangeTrackChar = '=',
this.inactiveTrackChar = '-',
this.thumbChar = 'o',
this.label,
this.autofocus = false,
this.focusId,
this.focusController,
super.key,
}) : assert(max >= min),
assert(divisions == null || divisions > 0),
assert(width > 1),
assert(rangeTrackChar.length == 1),
assert(inactiveTrackChar.length == 1),
assert(thumbChar.length == 1);