isAlpha function

bool isAlpha(
  1. String str
)

Implementation

bool isAlpha(String str) {
  return RegExp(r'^[a-zA-Z]+$').hasMatch(str);
}