byCode method

PaylikeCurrency byCode(
  1. CurrencyCode code
)

Provides a PaylikeCurrency based on code

Implementation

PaylikeCurrency byCode(CurrencyCode code) {
  var element = PaylikeCurrencyCollection.currencies[code];
  if (element == null) {
    throw MissingCurrencyException.fromCode(code);
  }
  return element;
}