setPage method
Page
Specify the page to retrieve.
Usage notes:
- Page numbers
- Page-numbering is based on the value of hitsPerPage. If hitsPerPage=20, then page=0 will display the hits from 1 to 20, page=2 will display the hits from 41 to 60.
- Page numbers are zero-based. Therefore, in order to retrieve the 10th page, you need to set page=9.
- If you send a request for a page that does not exist, or is out-of-range (i.e. when page > nbPages), we do not return an error. Instead, we return 0 results. Source: Learn more
Implementation
AlgoliaQuery setPage(int value) {
assert(!_parameters.containsKey('page'));
return _copyWithParameters(<String, dynamic>{'page': value});
}