changePage method

void changePage(
  1. int pageIndex
)

Function that take a Int to swap to this page

Implementation

void changePage(int pageIndex) {
  _currentPageIndex = pageIndex;
  notifyListeners();
}