setRefresh method

void setRefresh(
  1. bool refresh
)

Sets _shouldRefresh flag with provided boolean parameter.

Implementation

void setRefresh(bool refresh) {
  _shouldRefresh = refresh;
  notifyListeners();
}