InfiniteQueryFn<TPage, TParam> typedef

InfiniteQueryFn<TPage, TParam> = Future<TPage> Function(TParam pageParam)

Function signature for fetching a single page of type TPage using page parameter TParam.

InfiniteQueryFn<List<Post>, int> fetchPostsPage = (pageIndex) => api.fetchPosts(page: pageIndex);

Implementation

typedef InfiniteQueryFn<TPage, TParam> = Future<TPage> Function(TParam pageParam);