sixDigitStr top-level property

String sixDigitStr
getter/setter pair

The pattern used to match strings that contain exactly six digits.

Pattern breakdown:

  • ^ and $: Anchors to match the entire string.
  • \d{6}: Matches exactly six digits (0–9).

Pattern: ^\d{6}$

Implementation

String sixDigitStr = r'^\d{6}$';