SwipeProperties 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

SwipeProperties({required SwipeDirection direction, required SwipeSpeed speed, required SwipeMagnitude magnitude, required SwipeAngle angle})
Creates a new SwipeProperties 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
Meaningful string for debugging and logging (avoids default "Instance of 'Swipe'"). Audited: 2026-06-12 11:26 EDT
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited