createAnimation method

  1. @override
Animation<double> createAnimation()
override

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;
}