parse static method

CurrencyHelper parse(
  1. String countryCode
)

Implementation

static CurrencyHelper parse(
  String countryCode,
) {
  var currencyItem = _values.entries.firstWhere(
    (element) => element.key.alpha2 == countryCode,
  );
  return CurrencyHelper._(currencyItem.value.first);
}