isAz static method

bool isAz(
  1. String str
)

【全为字母】返回true 否则false All letters Returns true otherwise false

Implementation

static bool isAz(String str) {
  return RegExp(r"^[ZA-ZZa-z_]+$").hasMatch(str);
}