The Animation<T> class
In Flutter, animations consist of a status and a value with the T type. The animation status corresponds to its state (that is, if it's running or completed); its value corresponds to its current value, and it is intended to change during the animation execution.
Besides holding that information about the animation, this class exposes callbacks so other classes can know how the animations are running, and the animation's current status and value too.
An Animation<T> class instance is only responsible for holding and exposing those values. It does not know anything about visual feedback, what is drawn on screen, or how to draw it (that is, build() functions).
One of the most common kinds of animation you will see is ...
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