AuthState.withError constructor
AuthState.withError(
- String errorMessage
Create an error state
Implementation
AuthState.withError(String errorMessage)
: status = AuthStatus.error,
user = null,
error = errorMessage;