registerList method
Register a list of currencies.
Once a Currency has been registered the Currencies.parse method will be able to recognize the currencey isoCode in String and return the correct type.
Currency usd = Currency.create('USD', 2);
Currency aud = Currency.create('AUD', 2);
Currencies().registerList([usd, aud]);
final usdAmount = Currencies.parse(r'$USD1500.0');
Implementation
void registerList(Iterable<Currency> currencies) {
for (final currency in currencies) {
_self._directory[currency.isoCode] = currency;
}
}