SwipableInfo class

Constructors

SwipableInfo()

Properties

contextWidth ↔ double
The width of the provided BuildContext, used to calculate fractional values.
read / write
delta → double
The difference between pointer and startPosition.
read-only
fractionalDelta → double
The fraction of contextWidth represented by delta.
read-only
fractionalPosition → double
The fraction of contextWidth represented by position.
read-only
fractionalVelocity → double
The fraction of contextWidth represented by velocity.
read-only
lastPosition → double
The previous location of the pointer along the x-axis.
read-only
position ↔ double
The current location of the pointer along the x-axis.
read / write
startPosition ↔ double
The location of the pointer along the x-axis when the gesture was initiated.
read / write
velocity → double
The difference between pointer and lastPosition.
read-only
hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

reset() → void
Resets the state of the SwipableInfo so all positions are 0.0. Should not be used except internally.
toString() → String
Returns a string representation of this object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
@pragma("vm.entry-point"), inherited

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited