animateTo abstract method
Animate to the step index. If the current step index equals the provided step index nothing will happen.
Implementation
Future<void> animateTo({
required int index,
Duration delay,
Duration duration,
Curve curve,
});