hasNextPage property
bool
get
hasNextPage
Returns true if the pagination has a next page
Implementation
bool get hasNextPage {
return when(
page: (currentPage, perPage, total) =>
currentPage < ((total / perPage).ceil()),
cursor: (_, __, hasNextPage) => hasNextPage,
);
}