getNextPageParam property
dynamic Function(T lastResult)?
getNextPageParam
final
Provide this to enable infinite scroll. Receives the last page result and returns the next page cursor. Return null to signal no more pages.
getNextPageParam: (lastPage) => lastPage.hasMore ? lastPage.nextCursor : null
Implementation
final dynamic Function(T lastResult)? getNextPageParam;