Sim<T> class
abstract
The base class for all generic immutable simulations.
Like Flutter's Simulation but generic over T, not just double. This is the foundation that lets springs work on Offset, Rect, or any type.
- Implementers
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- 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".
final
Methods
-
isDone(
double time) → bool - Whether the simulation is "done" at the given time.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
value(
double time) → T - The output of the object in the simulation at the given time.
-
velocity(
double time) → T - The change in value of the object in the simulation at the given time.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited