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