FContinuousSliderController constructor

FContinuousSliderController({
  1. required FSliderValue value,
  2. double stepPercentage = 0.05,
  3. FSliderInteraction interaction = .tapAndSlideThumb,
  4. FSliderActiveThumb thumb = .max,
  5. double hapticFeedbackVelocity = 6.5,
})

Creates a FContinuousSliderController for selecting a single value.

Implementation

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