fromValue static method

AccountType fromValue(
  1. int value
)

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);
}