fetchNext property

Future<List<T>> Function(int index, int crossAxisCount) fetchNext
final

Function to fetch the next set of items when scrolling forward.

index is the starting index of the data to be fetched next. For example, if data 0-19 is currently displayed, the next data will be fetched starting from 20.

crossAxisCount is the number of children along the horizontal axis in a GridView. For a ListView, it is 1.

If this method returns an empty List, it is determined that data fetching has ended, and no further data will be fetched.

Implementation

final Future<List<T>> Function(int index, int crossAxisCount) fetchNext;