animateTo method

void animateTo(
  1. int index, {
  2. Duration? duration,
  3. Curve? curve,
})

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);