animateToIndex method

void animateToIndex(
  1. int index
)

call this to change the current index

Implementation

void animateToIndex(int index) {
  _state!.animToIndex(index);
}