isAlphabetic method
Checks if the string contains only alphabetic characters.
Implementation
bool isAlphabetic() {
final alphabeticRegex = RegExp(r'^[a-zA-Z]+$');
return alphabeticRegex.hasMatch(this);
}
Checks if the string contains only alphabetic characters.
bool isAlphabetic() {
final alphabeticRegex = RegExp(r'^[a-zA-Z]+$');
return alphabeticRegex.hasMatch(this);
}