currencyFormat static method
Implementation
static String currencyFormat(
double amount, {
String? symbol,
String locale = 'id_ID',
int decimalDigits = 2,
String? customPattern,
}) {
final NumberFormat format = NumberFormat.currency(
locale: locale,
symbol: symbol,
decimalDigits: decimalDigits,
customPattern: customPattern,
);
return format.format(amount);
}