ActionTween<T> class
An action that tweens a property between two values, optionally using an animation curve. This is one of the most common building blocks when creating actions. The tween class can be used to animate properties of the type Point, Size, Rect, double, or Color.
- Inheritance
- Object
- Action
- ActionInterval
- ActionTween
Constructors
- ActionTween(SetterCallback setter, T startVal, T endVal, double duration, [ Curve curve ])
-
Creates a new tween action. The
setter
will be called to update the animated property fromstartVal
toendVal
over theduration
time in seconds. Optionally an animationcurve
can be passed in for easing the animation. [...]
Properties
- endVal → T
-
The end value of the animation.
final
- setter → SetterCallback
-
The setter method used to set the property being animated.
final
- startVal → T
-
The start value of the animation.
final
- curve ↔ Curve
-
The animation curve used to ease the animation. [...]
read / write, inherited
- duration → double
-
The total time it will take to complete the action, in seconds.
read-only, inherited
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
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. -
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
Operators
-
operator ==(
other) → bool -
The equality operator. [...]
inherited