resetLoadState method

void resetLoadState()

Reset the failure state to allow retrying

Implementation

void resetLoadState() {
  if (_loadAttempts < _maxLoadAttempts) {
    _loadFailed = false;
    _loadError = null;
  }
}