chooseRightOrderOnCurrencySymbol static method

String chooseRightOrderOnCurrencySymbol(
  1. dynamic amount,
  2. String currencyCode, {
  3. NumberFormat? priceFormat,
  4. String? locale,
})

returns a formatted acount with currency code with given priceFormat

Implementation

static String chooseRightOrderOnCurrencySymbol(
  dynamic amount,
  String currencyCode, {
  NumberFormat? priceFormat,
  String? locale,
}) {
  return NumberFormat.currency(
    name: currencyCode,
    symbol: '${_simpleCurrencySymbols[currencyCode]}',
    locale: locale,
  ).format(amountFromJson(amount));
}