GlassSlider constructor
- Key? key,
- required double value,
- required ValueChanged<
double> ? onChanged, - double min = 0,
- double max = 1,
- int? divisions,
- ValueChanged<
double> ? onChangeStart, - ValueChanged<
double> ? onChangeEnd, - Color? activeColor,
- String? semanticLabel,
- FocusNode? focusNode,
- bool autofocus = false,
Creates a slider at value, from min to max.
Implementation
const GlassSlider({
super.key,
required this.value,
required this.onChanged,
this.min = 0,
this.max = 1,
this.divisions,
this.onChangeStart,
this.onChangeEnd,
this.activeColor,
this.semanticLabel,
this.focusNode,
this.autofocus = false,
}) : assert(divisions == null || divisions > 0);