HareSliderInt constructor

HareSliderInt({
  1. required int value,
  2. int? secondaryTrackValue,
  3. required OnValue<int>? onChanged,
  4. OnValue<int>? onChangeStart,
  5. OnValue<int>? onChangeEnd,
  6. int min = 0,
  7. int max = 100,
  8. int? divisions,
  9. String? label,
  10. bool autoLabel = true,
  11. OnLabel<int>? labelBuilder,
  12. Color? activeColor,
  13. Color? inactiveColor,
  14. Color? secondaryActiveColor,
  15. Color? thumbColor,
  16. WidgetStateProperty<Color?>? overlayColor,
  17. MouseCursor? mouseCursor,
  18. String semanticFormatterCallback(
    1. int
    )?,
  19. FocusNode? focusNode,
  20. bool autofocus = false,
  21. 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();