formatThousands method

String formatThousands({
  1. String symbol = ',',
  2. int? fractionDigits,
  3. bool round = true,
})

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,
  );
}