convertCurrency function

String convertCurrency(
  1. int currency
)

Implementation

String convertCurrency(int currency) {
  switch (currency) {
    case 0:
      return "IRR";
    case 1:
      return "USD";
    case 2:
      return "EUR";
    default:
      return "IRR"; // default fallback
  }
}