Decay class abstract
Release-time decay model. Produces a Flutter Simulation for the rect's
post-gesture motion given a starting position and velocity. Origin reads
x(t), dx(t), isDone(t) on the returned simulation — anything that
conforms to Simulation plugs in (friction, spring, custom).
- Implementers
Constructors
- Decay({double endVelocity = 60})
-
const
- Decay.exponential(double drag, {double endVelocity})
-
constfactory
- Decay.halfLife(Duration t, {double endVelocity})
-
factory
- Decay.imageViewer({double endVelocity})
-
constfactory
- Decay.iosFast({double endVelocity})
-
constfactory
- Decay.iosScroll({double endVelocity})
-
constfactory
- Decay.none({double endVelocity})
-
constfactory
- Decay.perFrame(double multiplier, {double fps, double endVelocity})
-
factory
Properties
- endVelocity → double
-
Velocity (logical px/s) at which the decay phase ends. Higher = snappier
handoff to settle; lower = more "complete" tail. Default 60 ≈ 1 px/frame
at 60 Hz, the inter-frame visibility threshold.
final
- 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
-
simulationAt(
{required double position, required double velocity}) → Simulation -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited