isAlphabetOnly method

bool isAlphabetOnly()

Returns true if string contains only alphabet symbols

Implementation

bool isAlphabetOnly() {
  return isNullOrEmpty.not() ? RegExp(r'^[a-zA-Z]+$').hasMatch(this!) : false;
}