Tween
Besides all of these classes, we have one that can help in specific tasks regarding the range of the animation. As we have seen, by default, the simple start and end values of animation are 0.0 and 1.0 respectively. We can, by using Tweens, change the range or type of AnimationController without modifying it. Tweens can be of any type, and we can also create our custom Tween class if we want. The point is, Tweens returns values at periods between the beginning and the end, which you can pass as props to whatever you're animating, so it's always getting updated; for example, we can change the size of a widget, position, opacity, color, and so on by using specific Tweens for each one.
We also have other Tween descendant classes available ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access