hasNoSpecialChars property

bool get hasNoSpecialChars

Checks if the string does NOT contain any characters that are not letters, numbers, or spaces (i.e., special characters).

Implementation

bool get hasNoSpecialChars => !hasSpecialChars;