isAlphabet property
bool
get
isAlphabet
Checks if the string contains only alphabetic characters.
Implementation
bool get isAlphabet => regex(r'^[a-zA-Z]+$');
Checks if the string contains only alphabetic characters.
bool get isAlphabet => regex(r'^[a-zA-Z]+$');