setLoadingFailed method

void setLoadingFailed({
  1. String? errorMessage,
})

set the controller status to loadingFailed. Use this method when the widget failed to load more data. errorMessage is the error message that will be displayed in the footer.

Implementation

void setLoadingFailed({String? errorMessage}) {
  _status = GammaControllerStatus.loadingFailed(errorMessage: errorMessage);
  notifyListeners();
}