fromName static method

Currency? fromName(
  1. String? name
)

Implementation

static Currency? fromName(final String? name) {
  if (name == null) {
    return null;
  }
  for (final Currency currency in values) {
    if (currency.name == name) {
      return currency;
    }
  }
  return null;
}