DynamicEaseInOutSimulation class
A simulation that can be interrupted and reoriented with no discontinuities in velocity. Used in DynamicEaseInOutAnimationController, and SmoothV2
- Inheritance
-
- Object
- Simulation
- DynamicEaseInOutSimulation
Constructors
- DynamicEaseInOutSimulation.new(double v, {required double duration})
- DynamicEaseInOutSimulation.constructorFrom(double prevx, double prevdx, double newTarget, {required double duration})
- DynamicEaseInOutSimulation.unset({required double duration})
- use this when you want the first targetting to reach its destination instantly regardless of transitionDuration
Properties
- duration ↔ double
-
getter/setter pair
- endValue ↔ double
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startValue ↔ double
-
getter/setter pair
- startVelocity ↔ double
-
getter/setter pair
- tolerance ↔ Tolerance
-
How close to the actual end of the simulation a value at a particular time
must be before isDone considers the simulation to be "done".
getter/setter pairinherited
Methods
-
dx(
double time) → double -
The velocity of the object in the simulation at the given time.
override
-
isDone(
double time) → bool -
Whether the simulation is "done" at the given time.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
target(
double v, {required double time}) → void -
toString(
) → String -
A string representation of this object.
inherited
-
x(
double time) → double -
The position of the object in the simulation at the given time.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited