SwipableInfo class
Constructors
Properties
- contextWidth ↔ double
-
The width of the provided
BuildContext
, used to calculate fractional values.read / write - delta → double
-
The difference between
pointer
andstartPosition
.read-only - fractionalDelta → double
-
The fraction of
contextWidth
represented bydelta
.read-only - fractionalPosition → double
-
The fraction of
contextWidth
represented byposition
.read-only - fractionalVelocity → double
-
The fraction of
contextWidth
represented byvelocity
.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
andlastPosition
.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