Swipe class
Record for a swipe gesture.
This record contains the direction and speed of a swipe gesture. It is used to encapsulate the details of a swipe gesture in a single object. This makes it easier to pass around the details of a swipe gesture and use them in different parts of your code.
Constructors
- Swipe.new(SwipeDirection direction, SwipeSpeed speed, SwipeMagnitude magnitude, SwipeAngle angle)
-
Creates a new Swipe record.
const
Properties
- angle → SwipeAngle
-
The angle of the swipe.
final
- direction → SwipeDirection
-
The direction of the swipe.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- magnitude → SwipeMagnitude
-
The magnitude of the swipe.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- speed → SwipeSpeed
-
The speed of the swipe.
final
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