formatDigitNum function

String formatDigitNum(
  1. Object num, {
  2. int digit = 3,
})

每隔n位 加逗号

Implementation

String formatDigitNum(Object num, {int digit = 3}) =>
    formatDigitPatternEnd(num.toString(), digit: digit, pattern: ',');