SwipeState enum
Represents the current state of the swipe interaction state machine.
State transitions follow the path:
idle → dragging → animatingToOpen → revealed → animatingToClose → idle
Values
- idle → const SwipeState
-
The widget is at rest with no active interaction.
- dragging → const SwipeState
-
The user is actively dragging the widget.
- animatingToOpen → const SwipeState
-
The widget is animating towards the open/revealed position.
- animatingToClose → const SwipeState
-
The widget is animating back to the closed/origin position.
- revealed → const SwipeState
-
The widget is in the revealed/open position (action panel is visible).
- animatingOut → const SwipeState
-
The cell is sliding fully off-screen to the left after PostActionBehavior.animateOut. This is a terminal state within the widget; no automatic transition follows. The developer is responsible for removing the item from the list.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
SwipeState> - A constant List of the values in this enum, in order of their declaration.