refreshDataSource method

void refreshDataSource()
inherited

Implementation

void refreshDataSource() {
  if (!hasDataSource) return;

  var cachedResponse = _dataSourceCall!.cachedCall();

  if (cachedResponse != null) {
    applyData(cachedResponse);
  } else {
    _dataSourceCall!.call().then((result) {
      applyData(result);
    });
  }
}