setAsError method

void setAsError(
  1. Object e
)

Set the pod to an error state.

Implementation

void setAsError(Object e) {
  _status = AsyncStatus.error;
  _error = e;
  notifyListeners();
}