formatCurrency function
formatCurrency formats the amount passed in, into a human readable amount
Implementation
String formatCurrency(dynamic amount) {
if (amount is String || amount is int || amount is double) {
return NumberFormat('#,###,###').format(amount);
}
return '0';
}