animateTo method

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

Animates to the tab with the given index.

Implementation

void animateTo(
  int value, {
  Duration duration = kTabScrollDuration,
  Curve curve = Curves.ease,
}) =>
    _controller.animateTo(value, duration: duration, curve: curve);