animateTo method

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

Immediately sets index and previousIndex and then plays the animation from its current value to index.

While the animation is running indexIsChanging is true. When the animation completes offset will be 0.0.

Implementation

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