RequestState<T>.error constructor

const RequestState<T>.error(
  1. String error
)

An error has been generated in the network request process The error message is saved inside the errorMessage variable.

Implementation

const RequestState.error(String error)
    : this._(
        status: RequestStatus.error,
        errorMessage: error,
      );