jumpToPage method

void jumpToPage(
  1. int page
)

Changes which page is displayed in the controlled PreloadPageView.

Jumps the page position from its current value to the given value, without animation, and without checking if the new value is in range.

Implementation

void jumpToPage(int page) {
  final position = this.position as _PagePosition;
  position.jumpTo(position.getPixelsFromPage(page.toDouble()));
}