PaginationSearchManager<T> constructor

PaginationSearchManager<T>({
  1. required PaginatedSearchRepository<T> repository,
  2. 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});