compactCurrency method
format number with intl compactCurrency format
Implementation
String compactCurrency({
String? locale,
String? name,
String? symbol,
int? decimalDigits,
String? customPattern,
}) {
if (this == null) return '';
return NumberFormat.compactCurrency(
locale: locale,
name: name,
symbol: symbol,
decimalDigits: decimalDigits,
).format(this!);
}