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