currency static method
Formats number as a currency value.
Implementation
static String currency(num number, {String? currency, String? locale}) {
final formatter = NumberFormat.simpleCurrency(
locale: locale ?? _defaultLocale,
name: currency ?? _defaultCurrency,
);
return formatter.format(number);
}