fetcher property
The async function that fetches data.
For regular queries, pageParam is always null — ignore it:
fetcher: (_) => api.getUsers()
// or simply
fetcher: (pageParam) => api.getUsers()
For infinite queries, pageParam holds the cursor returned by getNextPageParam:
fetcher: (pageParam) => api.getUsers(cursor: pageParam)
Implementation
final Future<T> Function(dynamic pageParam) fetcher;