shape: BoxShape.circle,

5. Trigger the animation

To start the bouncing ball animation so that
it repeats indefinitely, call AnimationController.repeat():

{explicit5 → explicit6}/lib/main.dart

@@ -26,6 +26,8 @@

26
26

controller.addListener(() {

27
27

setState(() {});

28
28

});

29

30

+
                controller.repeat(reverse: true);

29
31

30
32

@override

This step calls repeat() within initState() because
the bouncing ball animation can begin immediately
when this view is