HareSliderInt constructor
HareSliderInt({
- required int value,
- int? secondaryTrackValue,
- required OnValue<
int> ? onChanged, - OnValue<
int> ? onChangeStart, - OnValue<
int> ? onChangeEnd, - int min = 0,
- int max = 100,
- int? divisions,
- String? label,
- bool autoLabel = true,
- OnLabel<
int> ? labelBuilder, - Color? activeColor,
- Color? inactiveColor,
- Color? secondaryActiveColor,
- Color? thumbColor,
- WidgetStateProperty<
Color?> ? overlayColor, - MouseCursor? mouseCursor,
- String semanticFormatterCallback()?,
- FocusNode? focusNode,
- bool autofocus = false,
- SliderInteraction? allowedInteraction,
Implementation
HareSliderInt({
required this.value,
this.secondaryTrackValue,
required this.onChanged,
this.onChangeStart,
this.onChangeEnd,
this.min = 0,
this.max = 100,
int? divisions,
this.label,
this.autoLabel = true,
this.labelBuilder,
this.activeColor,
this.inactiveColor,
this.secondaryActiveColor,
this.thumbColor,
this.overlayColor,
this.mouseCursor,
this.semanticFormatterCallback,
this.focusNode,
this.autofocus = false,
this.allowedInteraction,
}) : this.divisions = divisions ?? (max - min),
super();