formatAsCompactCurrency method
Formats the number as compact simple currency with the given locale
and name
.
Implementation
String formatAsCompactCurrency({String? locale, String? name}) {
return NumberFormat.compactSimpleCurrency(locale: locale, name: name)
.format(this);
}