fromName static method
Implementation
static AccountState fromName(String? value) {
return values.firstWhere(
(element) => element.name == value,
orElse: () => throw MessageException(
"No AccountState found matching the specified value",
details: {"value": value}),
);
}