animateNext method
Animates to the next item.
Implementation
void animateNext(Duration duration, [Curve curve = Curves.easeInOut]) {
_controller.push(
AnimationRequest(
(_controller.value + 1).roundToDouble(),
duration,
curve,
),
false,
);
}