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