fromValue static method
- int value
Creates an enumeration value from int. param value The int value. return The created UserAuthenticationMethod.
Implementation
static UserAuthenticationMethod fromValue(int value) {
switch (value) {
case 0:
return UserAuthenticationMethod.undefined;
case 1:
return UserAuthenticationMethod.password;
case 2:
return UserAuthenticationMethod.biometrics;
default:
throw Exception("Unable to find the specified enum value for $value");
}
}