next method
void
next()
Moves to the next page if the current page is less than the total number of pages.
Implementation
void next() {
if (_page < pages - 1) {
_page = _page + 1;
notifyListeners();
}
}
Moves to the next page if the current page is less than the total number of pages.
void next() {
if (_page < pages - 1) {
_page = _page + 1;
notifyListeners();
}
}