pages property
int
get
pages
Gets the number of all valid pages.
Implementation
int get pages {
if (resultsPerPage <= 0) return 0;
if (total % resultsPerPage == 0) return (total ~/ resultsPerPage);
return (total ~/ resultsPerPage) + 1;
}