initState method
Called when the state is inserted into the tree.
Implementation
@override
void initState() {
super.initState();
_controller = createAnimationController(duration: widget.duration);
_controller.addListener(() => setState(() {}));
_constructTweens();
}