SBBSlideToToggleSmall class
The SBB Slide-To-Toggle with reduced toggle size.
This variant displays a smaller toggle button and is suitable for compact layouts or when space is limited. It supports the same functionality and customization options as SBBSlideToToggle.
Like SBBSlideToToggle, this component is not accessible. See the Accessibility section of SBBSlideToToggle before using it.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- SBBSlideToToggle
- SBBSlideToToggleSmall
Constructors
-
SBBSlideToToggleSmall({Key? key, required SBBSlideToToggleState value, required ValueChanged<
SBBSlideToToggleState> ? onChanged, required SBBSlideToggleDecoration onToggleDecoration, required SBBSlideToggleDecoration offToggleDecoration, SBBSlideToToggleTriggerMode triggerMode = .onThresholdReached, double threshold = 0.8, SBBSlideToToggleStyle? style, bool isLoading = false}) -
Creates a small SBB Slide-To-Toggle.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isLoading → bool
-
Whether to show a loading indicator instead of the toggle widget.
finalinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- offToggleDecoration → SBBSlideToggleDecoration
-
Configuration for the toggle and track when in SBBSlideToToggleState.off.
finalinherited
-
onChanged
→ ValueChanged<
SBBSlideToToggleState> ? -
Called when the user toggles the Slide-To-Toggle.
finalinherited
- onToggleDecoration → SBBSlideToggleDecoration
-
Configuration for the toggle and track when in SBBSlideToToggleState.on.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → SBBSlideToToggleStyle?
-
Customizes this Slide-To-Toggle appearance.
finalinherited
- threshold → double
-
The normalized drag threshold for state changes, between 0.0 and 1.0.
finalinherited
- triggerMode → SBBSlideToToggleTriggerMode
-
Defines when the onChanged callback is triggered.
finalinherited
- value → SBBSlideToToggleState
-
State value of the Slide-To-Toggle
finalinherited
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< SBBSlideToToggle> -
Creates the mutable state for this widget at a given location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
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
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited