isSupported static method

bool isSupported(
  1. String currencyCode
)

Returns true if the given currency code is supported.

Example:

print(Currency.isSupported('USD')); // true
print(Currency.isSupported('XYZ')); // false

Implementation

static bool isSupported(String currencyCode) {
  return CurrencyDatabase.isSupported(currencyCode);
}