WheelMotion class sealed
How a SmoothScrollController moves to its wheel target.
WheelMotion.spring and WheelMotion.lerp follow a moving target, so wheel input during the motion changes where it goes without starting over. WheelMotion.curve starts a new curve from the current position on every wheel input.
Constructors
- WheelMotion.curve({Duration duration, Curve curve})
-
A
curveoverduration, restarted from the current position on every wheel input.constfactory - WheelMotion.lerp({Duration timeConstant})
-
Covers a fixed fraction of the remaining distance per unit of time: after
timeConstant, about 63% of it.constfactory - WheelMotion.spring({Duration duration, double bounce})
-
A critically damped spring when
bounceis0, which arrives as fast as possible without passing the target.constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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