byCode method Null safety
- CurrencyCode code
Implementation
PaylikeCurrency byCode(CurrencyCode code) {
var element = PaylikeCurrencyCollection.currencies[code];
if (element == null) {
throw MissingCurrency.fromCode(code);
}
return element;
}