nextPage property

int get nextPage

Next page index.

If this is the last page returns the last page index (the current page index).

Implementation

int get nextPage {
  var page = currentPage;
  var totalPages = this.totalPages;
  if (totalPages == null) {
    return page + 1;
  } else {
    var lastPageIndex = totalPages - 1;
    return page < lastPageIndex ? page + 1 : lastPageIndex;
  }
}