chooseRightOrderOnCurrencySymbol static method
String
chooseRightOrderOnCurrencySymbol(
- dynamic amount,
- String currencyCode, {
- NumberFormat? priceFormat,
returns a formatted acount with currency code with given priceFormat
Implementation
static String chooseRightOrderOnCurrencySymbol(
dynamic amount,
String currencyCode, {
NumberFormat? priceFormat,
}) {
return NumberFormat.currency(
name: currencyCode,
symbol: '${_simpleCurrencySymbols[currencyCode]}',
).format(amountFromJson(amount));
}