chooseRightOrderOnCurrencySymbol static method
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));
}