toNextPage method

void toNextPage()

跳转到下一页

Implementation

void toNextPage() {
  if (_currentPage < total - 1) {
    goToPage(_currentPage + 1);
  } else {
    goToPage(0);
  }
  notifyListeners();
}