refresh method
Refresh the data
Implementation
Future<void> refresh() async {
_nextKey = _initialKey;
_endReached = false;
_currentError = null;
_items.clear();
_isLoading = false;
_emitState();
return loadMore();
}
Refresh the data
Future<void> refresh() async {
_nextKey = _initialKey;
_endReached = false;
_currentError = null;
_items.clear();
_isLoading = false;
_emitState();
return loadMore();
}