FDiscreteSliderController class
A controller that manages a slider's active track which represents a discrete range/value.
- Inheritance
-
- Object
- FChangeNotifier
- FSliderController
- FDiscreteSliderController
Constructors
- FDiscreteSliderController({required FSliderSelection selection, FSliderInteraction allowedInteraction = FSliderInteraction.tapAndSlideThumb, bool tooltips = true, bool minExtendable = false})
- Creates a FDiscreteSliderController for selecting a single value.
- FDiscreteSliderController.range({required FSliderSelection selection, bool tooltips = true})
- Creates a FDiscreteSliderController for selecting a range.
Properties
- allowedInteraction → FSliderInteraction
-
The allowed ways to interaction with the slider. Defaults to FSliderInteraction.tapAndSlideThumb.
finalinherited
- disposed → bool
-
True if this notifier has been disposed.
no setterinherited
- extendable → ({bool max, bool min})
-
Whether the active track is extendable at its min and max edges.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selection ↔ FSliderSelection
-
The slider's active track/selection.
getter/setter pairinherited
- tooltips → FSliderTooltipsController
-
True if the registered tooltip(s) should be shown when the user interacts with the slider. Defaults to true.
finalinherited
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
attach(
double extent, List< FSliderMark> marks) → void -
Registers the controller to a slider with the given extent and marks.
override
-
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
reset(
) → void -
Resets the controller to its initial state.
override
-
slide(
double offset, {required bool min}) → void -
Slides the active track to the given
offset
on themin
edge, in logical pixels.inherited -
step(
{required bool min, required bool extend}) → void -
Moves the active track on the
min
edge to the previous/next step.inherited -
tap(
double offset) → bool? -
Taps the slider at given offset, in logical pixels, along the track.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited