animateNext method

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

Animates to the next item.

Implementation

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