FSliderControl.managedDiscrete constructor
const
FSliderControl.managedDiscrete({
- FDiscreteSliderController? controller,
- FSliderValue? initial,
- FSliderInteraction? interaction,
- FSliderActiveThumb? thumb,
- ValueChanged<
FSliderValue> ? onChange,
Creates a FSliderControl for selecting a single discrete 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 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.managedDiscrete({
FDiscreteSliderController? controller,
FSliderValue? initial,
FSliderInteraction? interaction,
FSliderActiveThumb? thumb,
ValueChanged<FSliderValue>? onChange,
}) = _Discrete;