PaginationSearchManager<T> constructor
PaginationSearchManager<T> ({
- required PaginatedSearchRepository<
T> repository, - int limitPerPage = 20,
Creates a new instance of PaginationSearchManager.
repository - The implemented repository for fetching search paginated items.
limitPerPage - The maximum number of items to fetch per page.
Defaults to 20.
Throw an Exception if page or limitPerPage is less than 1.
Implementation
PaginationSearchManager({required this.repository, this.limitPerPage = 20});