setError method

void setError(
  1. Exception error
)

Implementation

void setError(Exception error) =>
    emit(SimpleState<T>.error(error.toString()));