AuthState.withError constructor

AuthState.withError(
  1. String errorMessage
)

Implementation

AuthState.withError(String errorMessage)
    : status = AuthStatus.error,
      user = null,
      error = errorMessage;