isAlphanumeric function

bool isAlphanumeric(
  1. String str
)

check if the string contains only letters and numbers

Implementation

bool isAlphanumeric(String str) {
  return _alphanumeric.hasMatch(str);
}