compactCurrencyFormat method

NumberFormat compactCurrencyFormat({
  1. String? locale,
  2. int? decimalDigits,
})

Creates a NumberFormat object as compact simple currency using the string as the currency name, along with the given locale.

Implementation

NumberFormat compactCurrencyFormat({String? locale, int? decimalDigits}) {
  return NumberFormat.compactSimpleCurrency(
    name: this,
    locale: locale,
    decimalDigits: decimalDigits,
  );
}