isSSN property
bool
get
isSSN
Checks if string is SSN (Social Security Number).
Implementation
bool get isSSN => matchesRegex(r'^(?!0{3}|6{3}|9[0-9]{2})[0-9]{3}-?(?!0{2})[0-9]{2}-?(?!0{4})[0-9]{4}$');
Checks if string is SSN (Social Security Number).
bool get isSSN => matchesRegex(r'^(?!0{3}|6{3}|9[0-9]{2})[0-9]{3}-?(?!0{2})[0-9]{2}-?(?!0{4})[0-9]{4}$');