amountFormat method
Format number with thousand separators
digit Number of decimal places to show (default: 0)
Example:
1234567.89.amountFormat(digit: 2); // Returns: '1,234,567.89'
Implementation
String amountFormat({int digit = 0}) {
return NumberUtils.amountFormat(this, digit: digit);
}