FContinuousSliderController constructor

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

Creates a FContinuousSliderController for selecting a single value.

Implementation

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