A factory for spring-based physics simulations.
Constants
Constructors
- SpringForce(SpringDescription spring, { double left: 0.0, double right: 1.0 })
-
Creates a spring force.
const
Properties
- left → double
-
Where to put the spring's resting point when releasing left.
read-only - right → double
-
Where to put the spring's resting point when releasing right.
read-only - spring → SpringDescription
-
The description of the spring to be used in the created simulations.
read-only - hashCode → int
-
Get a hash code for this object.
read-only, inherited - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
copyWith(
{SpringDescription spring, double left, double right }) → SpringForce -
Creates a copy of this spring force but with the given fields replaced with the new values.
-
release(
double position, double velocity) → Simulation -
Creates a new physics simulation with the given initial conditions.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited -
toString(
) → String -
Returns a string representation of this object.
inherited