createTweens method
Build the animations driven by controller. Called from initState
after controller has been created.
Implementation
@override
void createTweens() {
_rotation = Tween<double>(begin: 0, end: 2 * pi).animate(
CurvedAnimation(parent: controller, curve: widget.curve),
);
}