isAlpha method

bool isAlpha (
  1. String value
)

Implementation

static bool isAlpha(String value) {
  if (value == null) return false;
  var alphaRegExp = RegExp(r"^[A-Z]+$", caseSensitive: false);
  return alphaRegExp.hasMatch(value);
}