formatDigitPatternEnd static method

String formatDigitPatternEnd(
  1. String text, {
  2. int digit = 4,
  3. String pattern = ' ',
})

每隔 x位 加 pattern, 从末尾开始

Implementation

static String formatDigitPatternEnd(String text,
    {int digit = 4, String pattern = ' '}) {
  String temp = reverse(text);
  temp = formatDigitPattern(temp, digit: digit, pattern: pattern);
  temp = reverse(temp);
  return temp;
}