fetchPrev property
Function to fetch the previous set of items when scrolling backward.
index
is the last index of the data to be fetched next.
For example, if data 20-39 is currently displayed, the previous data will be fetched starting from 19.
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)? fetchPrev;