previousPage property
int
get
previousPage
The index of the previous page.
If this is the first page, returns 0 (the current page index).
Implementation
int get previousPage {
var page = currentPage;
return page > 0 ? page - 1 : 0;
}