compactCurrencyFormat method
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,
);
}