jumpToPage method Null safety

  1. @override
void jumpToPage(
  1. int page
)
override

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

@override
void jumpToPage(int page) {
  currentDate.value = _pageToDate(page);
  super.jumpToPage(page);
}