hasSpecialChars property
bool
get
hasSpecialChars
Checks if the string contains any characters that are not letters, numbers, or spaces (i.e., special characters).
Implementation
bool get hasSpecialChars => hasMatch(regexSpecialChars);