PaginatedQueryFunctions<T> constructor

PaginatedQueryFunctions<T>({
  1. dynamic getPreviousPageParam(
    1. List<T> pages
    )?,
  2. dynamic getNextPageParam(
    1. List<T> pages
    )?,
})

Functions are saved on RemoterClient when widget mounts RemoterClient uses these to fetch following pages pages represents all pages in current query Query should have RemoterStatus.success status to be able to call these functions

Implementation

PaginatedQueryFunctions({
  this.getPreviousPageParam,
  this.getNextPageParam,
});