createAnimation method
Called to create the animation that exposes the current progress of the transition controlled by the animation controller created by createAnimationController().
Implementation
@override
Animation<double> createAnimation() {
if (curve != null) {
return CurvedAnimation(curve: curve!, parent: _animationController!.view);
}
return _animationController!.view;
}