OneUISlider constructor
const
OneUISlider({
- Key? key,
- required double value,
- required ValueChanged<
double> ? onChanged, - double thumbRadius = 10.0,
- double onClickThumbRadius = 13.0,
- ValueChanged<
double> ? onChangeStart, - ValueChanged<
double> ? onChangeEnd, - double min = 0.0,
- double max = 1.0,
- int? divisions,
- String? label,
- Color? activeColor,
- Color? inactiveColor,
- MouseCursor? mouseCursor,
- SemanticFormatterCallback? semanticFormatterCallback,
- FocusNode? focusNode,
- bool autofocus = false,
- bool useOneUIColor = false,
Implementation
const OneUISlider({
Key? key,
required this.value,
required this.onChanged,
this.thumbRadius = 10.0,
this.onClickThumbRadius = 13.0,
this.onChangeStart,
this.onChangeEnd,
this.min = 0.0,
this.max = 1.0,
this.divisions,
this.label,
this.activeColor,
this.inactiveColor,
this.mouseCursor,
this.semanticFormatterCallback,
this.focusNode,
this.autofocus = false,
this.useOneUIColor = false,
}) : assert(min <= max),
assert(value >= min && value <= max),
assert(divisions == null || divisions > 0),
super(key: key);