A motion that tweens a property between two values, optionally using an
animation curve. This is one of the most common building blocks when
creating motions. The tween class can be used to animate properties of the
Point, Size, Rect, double, or Color.
T startVal, T endVal, double duration, [Curve curve] )
Creates a new tween motion. The
setterwill be called to update the animated property from
durationtime in seconds. Optionally an animation
curvecan be passed in for easing the animation. [...]
- curve ↔ Curve
The animation curve used to ease the animation. [...]
read / write, inherited
- duration → double
The total time it will take to complete the motion, in seconds.
- endVal → T
The end value of the animation.
- hashCode → int
The hash code for this object. [...]
- runtimeType → Type
A representation of the runtime type of the object.
- setter → SetterCallback
The setter method used to set the property being animated.
- startVal → T
The start value of the animation.
Invocation invocation ) → dynamic
Invoked when a non-existent method or property is accessed. [...]
double dt ) → void
Moves to the next time step in an motion,
dtis the delta time since the last time step in seconds. Typically this method is called from the MotionController.inherited
) → String
Returns a string representation of this object.
double t ) → void
Sets the motion to a specific point in time. The
tvalue that is passed in is a normalized value 0.0 to 1.0 of the duration of the motion. Every motion will always recieve a callback with the end time point (1.0), unless it is cancelled.override