FSliderControl class sealed
A FSliderControl defines how a FSlider is controlled.
A Control defines how a widget's state is managed:
- Managed: The widget manages its own controller. Pass configuration parameters directly or provide an external controller for programmatic access.
// Let widget create controller with configuration
FPopover(control: .managed(motion: myMotion, onChange: print));
// Or provide your own controller
FPopover(control: .managed(controller: _myController));
- Lifted: The parent owns the state. Pass the current value and an
onChangecallback. Useful for unidirectional data flow or integrating with external state management.
FPopover(
control: .lifted(
shown: _shown,
onChange: (shown) => setState(() => _shown = shown),
),
)
- Mixed-in types
- Implementers
Constructors
-
FSliderControl.liftedContinuous({required FSliderValue value, required ValueChanged<
FSliderValue> onChange, FSliderInteraction? interaction, FSliderActiveThumb? thumb, double? stepPercentage}) -
Creates a lifted FSliderControl for selecting a single continuous value.
constfactory
-
FSliderControl.liftedContinuousRange({required FSliderValue value, required ValueChanged<
FSliderValue> onChange, double? stepPercentage}) -
Creates a lifted FSliderControl for selecting a continuous range.
constfactory
-
FSliderControl.liftedDiscrete({required FSliderValue value, required ValueChanged<
FSliderValue> onChange, FSliderInteraction? interaction, FSliderActiveThumb? thumb}) -
Creates a lifted FSliderControl for selecting a single discrete value.
constfactory
-
FSliderControl.liftedDiscreteRange({required FSliderValue value, required ValueChanged<
FSliderValue> onChange}) -
Creates a lifted FSliderControl for selecting a discrete range.
constfactory
-
FSliderControl.managedContinuous({FContinuousSliderController? controller, FSliderValue? initial, double? stepPercentage, FSliderInteraction? interaction, FSliderActiveThumb? thumb, ValueChanged<
FSliderValue> ? onChange}) -
Creates a FSliderControl for selecting a single continuous value.
constfactory
-
FSliderControl.managedContinuousRange({FContinuousSliderController? controller, FSliderValue? initial, double? stepPercentage, ValueChanged<
FSliderValue> ? onChange}) -
Creates a FSliderControl for selecting a continuous range.
constfactory
-
FSliderControl.managedDiscrete({FDiscreteSliderController? controller, FSliderValue? initial, FSliderInteraction? interaction, FSliderActiveThumb? thumb, ValueChanged<
FSliderValue> ? onChange}) -
Creates a FSliderControl for selecting a single discrete value.
constfactory
-
FSliderControl.managedDiscreteRange({FDiscreteSliderController? controller, FSliderValue? initial, ValueChanged<
FSliderValue> ? onChange}) -
Creates a FSliderControl for selecting a discrete range.
constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createController(
) → FSliderController -
Creates a FSliderController.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited