fromName static method

AccountState fromName(
  1. String? value
)

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