animateTo method

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

Implementation

void animateTo(int value, {Duration? duration, Curve curve = Curves.ease}) {
  _changeIndex(value, duration: duration ?? _animationDuration, curve: curve);
}