initAnimation method

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

Initialize the Animation.

Implementation

@override
void initAnimation(AnimationController controller) {
  _fadeIn = Tween<double>(begin: 0.0, end: 1.0).animate(
    CurvedAnimation(
      parent: controller,
      curve: Interval(0.0, fadeInEnd, curve: Curves.linear),
    ),
  );

  _fadeOut = Tween<double>(begin: 1.0, end: 0.0).animate(
    CurvedAnimation(
      parent: controller,
      curve: Interval(fadeOutBegin, 1.0, curve: Curves.linear),
    ),
  );
}