isLettersOnly property

bool get isLettersOnly

Whether the string contains only letters

Implementation

bool get isLettersOnly {
  if (this.isNullOrBlank) return false;
  return isLetters.hasMatch(this!);
}