formatAsCompactCurrency method

String formatAsCompactCurrency({
  1. String? locale,
  2. String? name,
})

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);
}