setHitsPerPage method
HitsPerPage
Set the number of hits per page.
In most cases, page/hitsPerPage is the recommended method for pagination. Check our full discussion on pagination approaches.
Usage notes:
- This can be set at indexing time, as a default. And can be overridden at query time.
- 1000 is the maximum
Source: Learn more
Implementation
AlgoliaQuery setHitsPerPage(int value) {
assert(!_parameters.containsKey('hitsPerPage'));
return _copyWithParameters(<String, dynamic>{'hitsPerPage': value});
}