fromStringValue static method
Implementation
static AuthenticationState fromStringValue(String value) {
return AuthenticationState.values.firstWhere(
(state) => state.toString().split('.').last == value,
orElse: () => AuthenticationState.error,
);
}