applyPattern static method

String applyPattern(
  1. String digits,
  2. String pattern
)

Applies pattern to digits (digits-only string).

# in the pattern consumes one digit; every other character is emitted literally. Stops when digits are exhausted. Does NOT append extra digits beyond the pattern (they are truncated by format already).

Implementation

static String applyPattern(String digits, String pattern) {
  return _applyPattern(digits, pattern);
}