initAnimation method

  1. @override
void initAnimation(
  1. AnimationController controller
)
override

Initialize the Animation.

Implementation

@override
void initAnimation(AnimationController controller) {
  _bounce = Tween<double>(begin: bounceHeight, end: 0.0).animate(
    CurvedAnimation(
      parent: controller,
      curve: curve,
    ),
  );

  _fade = Tween<double>(begin: 0.0, end: 1.0).animate(
    CurvedAnimation(
      parent: controller,
      curve: const Interval(0.0, 0.5, curve: Curves.easeIn),
    ),
  );
}