lookupByCurrencyCode static method
Resolve country by currency code.
Implementation
static Country? lookupByCurrencyCode(String currencyCode) {
final normalized = currencyCode.trim().toUpperCase();
if (normalized.isEmpty) {
return null;
}
final mappedCountryCode = _currencyToCountryCode[normalized];
if (mappedCountryCode == null) {
return null;
}
return CountryData.getCountryByCode(mappedCountryCode);
}