jumpToPage method

void jumpToPage(
  1. int page
)
inherited

Changes which page is displayed in the controlled PageView.

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 _CustomPagePosition position = this.position as _CustomPagePosition;
  position.jumpTo(position.getPixelsFromPage(page.toDouble()));
}