isAlphabetOnly method
Returns true
if string contains only alphabet symbols
Implementation
bool isAlphabetOnly() {
return isNullOrEmpty.not() ? RegExp(r'^[a-zA-Z]+$').hasMatch(this!) : false;
}
Returns true
if string contains only alphabet symbols
bool isAlphabetOnly() {
return isNullOrEmpty.not() ? RegExp(r'^[a-zA-Z]+$').hasMatch(this!) : false;
}