currencyFormat function

String currencyFormat(
  1. int param,
  2. String unit
)

Implementation

String currencyFormat(int param, String unit) {
  final NumberFormat formatCurrency = NumberFormat();
  final String result = formatCurrency.format(param);
  return result + ' ' + unit;
}