toErrorStatus method Null safety

  1. @override
void toErrorStatus(
  1. dynamic e
)
override

Implementation

@override
void toErrorStatus(e) {
  this._isLoading = false;
  this._isLoadingSC.add(false);

  this._isError = true;
  this._isErrorSC.add(true);

  this._errorMessage = e.toString();
  this._errorMessageSC.add(e.toString());

  print("error: ${e.toString()}");
}