FSliderControl.managedContinuous constructor

const FSliderControl.managedContinuous({
  1. FContinuousSliderController? controller,
  2. FSliderValue? initial,
  3. double? stepPercentage,
  4. FSliderInteraction? interaction,
  5. FSliderActiveThumb? thumb,
  6. ValueChanged<FSliderValue>? onChange,
})

Creates a FSliderControl for selecting a single continuous value.

The controller, when provided, means all other configuration parameters should not be provided as they will be ignored. Pass these values to the controller's constructor instead.

The initial value. Defaults to FSliderValue(max: 0).

The stepPercentage is the percentage of the track to move when interacting with the slider using a keyboard. Defaults to 0.05 (5%).

The interaction is the allowed ways to interact with the slider. Defaults to FSliderInteraction.tapAndSlideThumb.

The thumb is the active thumb. Defaults to FSliderActiveThumb.max.

The onChange callback is called when the selected value changes.

Implementation

const factory FSliderControl.managedContinuous({
  FContinuousSliderController? controller,
  FSliderValue? initial,
  double? stepPercentage,
  FSliderInteraction? interaction,
  FSliderActiveThumb? thumb,
  ValueChanged<FSliderValue>? onChange,
}) = _Continuous;