scrollToIndex method

void scrollToIndex(
  1. int index,
  2. int duration,
  3. bool animate
)

Implementation

void scrollToIndex(int index, int duration, bool animate) {
  scrollToOffset(calculateOffsetOfIndex(index), duration, animate);
}