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 curve over duration, restarted from the current position on every wheel input.
const
factory
WheelMotion.lerp({Duration timeConstant})
Covers a fixed fraction of the remaining distance per unit of time: after timeConstant, about 63% of it.
const
factory
WheelMotion.spring({Duration duration, double bounce})
A critically damped spring when bounce is 0, which arrives as fast as possible without passing the target.
const
factory

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