fromValue static method

AccountSetAsfFlag? fromValue(
  1. int? value
)

Implementation

static AccountSetAsfFlag? fromValue(int? value) {
  if (value == null) return null;
  try {
    return values.firstWhere((element) => element.value == value);
  } on StateError {
    return null;
  }
}