isAlphaNumeric method

bool isAlphaNumeric (
  1. String value
)

Implementation

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