setRefresh method
This function can be used to handle the refresh state. for most cases refresh() should be fine.
Implementation
void setRefresh(bool refresh) {
_shouldRefresh = refresh;
notifyListeners();
}
This function can be used to handle the refresh state. for most cases refresh() should be fine.
void setRefresh(bool refresh) {
_shouldRefresh = refresh;
notifyListeners();
}