MaterialSliderData constructor
const
MaterialSliderData({
- double? value,
- ValueChanged<
double> ? onChanged, - Key? widgetKey,
- bool isEnabled = true,
- ValueChanged<
double> ? onChangeStart, - ValueChanged<
double> ? onChangeEnd, - double min = kDefaultMin,
- double max = kDefaultMax,
- int? divisions,
- Color? activeColor,
- Color? thumbColor,
- double? secondaryTrackValue,
- String? label,
- Color? inactiveColor,
- Color? secondaryActiveColor,
- WidgetStateProperty<
Color> ? overlayColor, - MouseCursor? mouseCursor,
- SemanticFormatterCallback? semanticFormatterCallback,
- FocusNode? focusNode,
- bool autofocus = kDefaultAutofocus,
- SliderInteraction? allowedInteraction,
- EdgeInsetsGeometry? padding,
Implementation
const MaterialSliderData({
super.value,
super.onChanged,
super.widgetKey,
super.isEnabled,
super.onChangeStart,
super.onChangeEnd,
super.min,
super.max,
super.divisions,
super.activeColor,
super.thumbColor,
this.secondaryTrackValue,
this.label,
this.inactiveColor,
this.secondaryActiveColor,
this.overlayColor,
this.mouseCursor,
this.semanticFormatterCallback,
this.focusNode,
this.autofocus = kDefaultAutofocus,
this.allowedInteraction,
this.padding,
});