GlassRangeSlider constructor
- Key? key,
- required GlassRange values,
- required ValueChanged<
GlassRange> ? onChanged, - double min = 0,
- double max = 1,
- int? divisions,
- ValueChanged<
GlassRange> ? onChangeStart, - ValueChanged<
GlassRange> ? onChangeEnd, - Color? activeColor,
- String? semanticLabel,
- String semanticFormatter(
- double value
- FocusNode? focusNode,
- FocusNode? endFocusNode,
- bool autofocus = false,
Creates a range slider showing values between min and max.
Implementation
const GlassRangeSlider({
super.key,
required this.values,
required this.onChanged,
this.min = 0,
this.max = 1,
this.divisions,
this.onChangeStart,
this.onChangeEnd,
this.activeColor,
this.semanticLabel,
this.semanticFormatter,
this.focusNode,
this.endFocusNode,
this.autofocus = false,
}) : assert(divisions == null || divisions > 0),
assert(min <= max);