39
43

@override

40
44

void dispose() {

41
45

controller.dispose();

42
46

super.dispose();

43
47

App source: animate2

Monitoring the progress of the animation

What's the point?

Use addStatusListener() for notifications of changes
to the animation’s state, such as starting, stopping,
or reversing direction.

Run an animation in an infinite loop by reversing direction when
the animation has either completed or returned to its starting state.