InfiniteQueryResult<TPage, TPageParam> constructor

const InfiniteQueryResult<TPage, TPageParam>({
  1. required QueryResult<InfiniteData<TPage, TPageParam>> query,
  2. required bool hasNextPage,
  3. required bool hasPreviousPage,
  4. required bool isFetchingNextPage,
  5. required bool isFetchingPreviousPage,
})

Creates an infinite query result projection.

Implementation

const InfiniteQueryResult({
  required this.query,
  required this.hasNextPage,
  required this.hasPreviousPage,
  required this.isFetchingNextPage,
  required this.isFetchingPreviousPage,
});