fromValue static method
Returns the AccountType associated with the given value
.
Throws an error if no match is found.
Implementation
static AccountType fromValue(int value) {
return values.firstWhere((element) => element.value == value);
}
Returns the AccountType associated with the given value
.
Throws an error if no match is found.
static AccountType fromValue(int value) {
return values.firstWhere((element) => element.value == value);
}