postalCode constant
Pattern
const postalCode
Postal Code
Implementation
static const Pattern postalCode = r"^\d{5}(-\d{4})?$";
Postal Code
static const Pattern postalCode = r"^\d{5}(-\d{4})?$";