handlePageChange method
Called when the page is navigated.
Return true, if the navigation should be performed. Otherwise, return false to disable the navigation for specific page index.
Implementation
Future<bool> handlePageChange(int oldPageIndex, int newPageIndex) async {
return true;
}