FSliderController.range constructor

FSliderController.range({
  1. required FSliderValue value,
  2. double hapticFeedbackVelocity = 6.5,
})

Creates a FSliderController for selecting a range.

Implementation

FSliderController.range({required FSliderValue value, this.hapticFeedbackVelocity = 6.5})
  : interaction = .tapAndSlideThumb,
    active = (min: true, max: true),
    _initial = value,
    assert(0 <= hapticFeedbackVelocity, 'hapticFeedbackVelocity ($hapticFeedbackVelocity) must be >= 0');