FSliderController constructor
FSliderController({
- required FSliderValue value,
- FSliderInteraction interaction = .tapAndSlideThumb,
- double hapticFeedbackVelocity = 6.5,
- FSliderActiveThumb thumb = .max,
Creates a FSliderController for selecting a single value.
Implementation
FSliderController({
required FSliderValue value,
this.interaction = .tapAndSlideThumb,
this.hapticFeedbackVelocity = 6.5,
FSliderActiveThumb thumb = .max,
}) : active = (min: thumb == .min, max: thumb == .max),
_initial = value,
assert(0 <= hapticFeedbackVelocity, 'hapticFeedbackVelocity ($hapticFeedbackVelocity) must be >= 0');