getCurrency function

String getCurrency(
  1. CurrencyType type
)

Implementation

String getCurrency(CurrencyType type) {
  switch (type) {
    case CurrencyType.usd:
      return 'USD';

    default:
      return 'usd';
  }
}