isAlphaNumeric function

bool isAlphaNumeric(
  1. String str
)

check if the string str contains only letters and numbers

Implementation

bool isAlphaNumeric(String str) {
  return alphaNumericReg.hasMatch(str);
}