isAlphabet property
bool
get
isAlphabet
Checks if the string consists only of ASCII letters (A-Z, a-z).
Leading/trailing whitespace is ignored.
Implementation
bool get isAlphabet => this != null && this!.trim().hasMatch(regexAlphabet);