jumpToIndex method

void jumpToIndex(
  1. int index
)

Jumps the origin-index to the given index, and the scroll-position to 0.0, without animation, and without checking if the new value is in range.

Any active animation is canceled. If the user is currently scrolling, that action is canceled.

Implementation

void jumpToIndex(int index) {
  jumpToIndexAndOffset(index: index, offset: 0.0);
}