isAlpha function

bool isAlpha (
  1. String str
)

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

Implementation

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