SwipeDirection enum
Defines the direction of a swipe gesture.
This enumeration is used to specify the direction in which a swipe gesture is expected to occur or has occurred.
-
leftToRight: Represents a swipe gesture that starts from the left edge and moves towards the right edge of the screen. -
rightToLeft: Represents a swipe gesture that starts from the right edge and moves towards the left edge of the screen. -
topToBottom: Represents a swipe gesture that starts from the top edge and moves towards the bottom edge of the screen. -
bottomToTop: Represents a swipe gesture that starts from the bottom edge and moves towards the top edge of the screen.
Usage:
SwipeDirection direction = SwipeDirection.leftToRight;
// You can use this enum to control the behavior of your swipe
// gestures in your application.
Values
- leftToRight → const SwipeDirection
-
Swipe from left to right.
- rightToLeft → const SwipeDirection
-
Swipe from right to left.
- topToBottom → const SwipeDirection
-
Swipe from top to bottom.
- bottomToTop → const SwipeDirection
-
Swipe from bottom to top.
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<
SwipeDirection> - A constant List of the values in this enum, in order of their declaration.