animateTo method

void animateTo(
  1. int index, {
  2. Duration? duration,
  3. Curve curve = Curves.ease,
})

Animates to the given index.

Implementation

void animateTo(
  int index, {
  Duration? duration,
  Curve curve = Curves.ease,
}) =>
    _controller.animateTo(index, duration: duration, curve: curve);