formatThousands method
Numerical thousandths handling in numeric format.
symbol
Symbolic form of thousandths.
fractionDigits
Keep the number of fractional parts.
Implementation
String formatThousands({
String symbol = ',',
int? fractionDigits,
bool round = true,
}) {
String result = toString();
return result.formatThousands(
symbol: symbol,
fractionDigits: fractionDigits,
round: round,
);
}