isAlpha function

bool isAlpha(
  1. String str
)

check if the string contains only letters (a-zA-Z).

Implementation

bool isAlpha(String str) {
  return _alpha.hasMatch(str);
}