animateTo method
Animates to the given index
.
curve
defaults to the FTabMotion.curve if not provided.
Implementation
void animateTo(int index, {Duration? duration, Curve? curve}) =>
_controller.animateTo(index, duration: duration, curve: curve ?? _curve);