initAnimation method
Initialize the Animation.
Implementation
@override
void initAnimation(AnimationController controller) {
final direction = textDirection;
const double inIntervalEnd = 1.0;
_slideIn = AlignmentTween(
begin: Alignment.topCenter.add(alignment).resolve(direction),
end: Alignment.center.add(alignment).resolve(direction),
).animate(
CurvedAnimation(
parent: controller,
curve: const Interval(0.0, inIntervalEnd, curve: Curves.linear),
),
);
_fadeIn = Tween<double>(begin: 0.0, end: 1.0).animate(
CurvedAnimation(
parent: controller,
curve: const Interval(0.0, inIntervalEnd, curve: Curves.easeOut),
),
);
}