FSliderControl.liftedDiscrete constructor

const FSliderControl.liftedDiscrete({
  1. required FSliderValue value,
  2. required ValueChanged<FSliderValue> onChange,
  3. FSliderInteraction? interaction,
  4. FSliderActiveThumb? thumb,
})

Creates a lifted FSliderControl for selecting a single discrete value.

The value is the current value.

The onChange callback is called when the selected value changes.

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.

Implementation

const factory FSliderControl.liftedDiscrete({
  required FSliderValue value,
  required ValueChanged<FSliderValue> onChange,
  FSliderInteraction? interaction,
  FSliderActiveThumb? thumb,
}) = _LiftedDiscrete;