fourDigitStr top-level property
The pattern used by the fourDigit regular expression. The pattern matches any string that contains exactly 4 digits (0-9). The pattern allows for optional leading and trailing digits, an optional decimal point,
Implementation
String fourDigitStr = r'^\d{4}$';