FContinuousSliderController.range constructor

FContinuousSliderController.range({
  1. required FSliderValue value,
  2. double stepPercentage = 0.05,
  3. double hapticFeedbackVelocity = 6.5,
})

Creates a FContinuousSliderController for selecting a range.

Implementation

FContinuousSliderController.range({required super.value, this.stepPercentage = 0.05, super.hapticFeedbackVelocity})
  : assert(
      0 <= stepPercentage && stepPercentage <= 1,
      'stepPercentage ($stepPercentage) must be between 0 and 1, inclusive.',
    ),
    super.range();