setError method

void setError(
  1. Object error
)

Sets the status to error with the given error object.

Implementation

void setError(Object error) {
  change(GetStatus<T>.error(error));
}