The spline action is used to animate a point along a spline definied by a set of points.

Inheritance

Constructors

ActionSpline(PointSetterCallback setter, List<Point> points, double duration, [ Curve curve ])

Creates a new spline action with a set of points. The setter is a callback for setting the positions, points define the spline, and duration is the time for the action to complete. Optionally a curve can be used for easing.

Properties

curve → Curve

The animation curve used to ease the animation.

read / write, inherited
duration double

read-only, inherited
hashCode int

Get a hash code for this object.

read-only, inherited
points List<Point>

A list of points that define the spline.

read-only
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited
setter PointSetterCallback

The callback used to update a point when the action is run.

read-only
tension double

The tension of the spline, defines the roundness of the curve.

read / write

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
step(double dt) → void

Moves to the next time step in an action, dt is the delta time since the last time step in seconds. Typically this method is called from the ActionController.

inherited
toString() String

Returns a string representation of this object.

inherited
update(double t) → void

Sets the action to a specific point in time. The t value that is passed in is a normalized value 0.0 to 1.0 of the duration of the action. Every action will always recieve a callback with the end time point (1.0), unless it is cancelled.