onFetchData property
The callback method that's called whenever the list is scrolled to the end
(meaning the top when reverse is true
, or the bottom otherwise).
In normal operation, this method should trigger new data to be fetched and
isLoading to be set to true
.
Exactly when this is called depends on the cacheExtent. Additionally, every call to this will be debounced by the provided debounceDuration.
Is required and cannot be null
.
Implementation
final VoidCallback onFetchData;