SimulationMotion<S extends CueSimulation> class
abstract
Base class for physics-driven motions that produce a specific simulation
type S.
Extend this instead of CueMotion directly when your motion always
produces a known CueSimulation subtype — e.g. Spring produces
CueSpringSimulation. The type parameter lets call sites and tooling
reason about the concrete simulation without a cast.
Constructors
- SimulationMotion()
-
Creates a SimulationMotion.
const
Properties
- baseDuration → Duration
-
The reference duration for a full 0→1 travel of this motion.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- totalPhases → int
-
The number of phases this motion contains. Defaults to
1.no setterinherited
Methods
-
build(
SimulationBuildData data) → CueSimulation -
Builds a
CueSimulationfor the given runtimedata.inherited -
buildBase(
{bool forward = true, int? phase}) → CueSimulation -
Convenience wrapper around build that constructs a default
SimulationBuildData for a full forward or reverse run.
inherited
-
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