isAlpha method

bool isAlpha()

Check text contains only letters

Implementation

bool isAlpha() {
  if (this == null) {
    return false;
  }
  return RegExp(kOnlyLettersPtrn).hasMatch(this!);
}