animatePrevious method

void animatePrevious(
  1. Duration duration, [
  2. Curve curve = Curves.easeInOut
])

Animates to the previous item.

Implementation

void animatePrevious(Duration duration, [Curve curve = Curves.easeInOut]) {
  _controller.push(
      AnimationRequest(
          (_controller.value - 1).roundToDouble(), duration, curve),
      false);
}