Check if string is alphanumeric
text - The text to validate Returns true if text is alphanumeric
text
static bool isAlphanumeric(String text) { return RegExp(r'^[a-zA-Z0-9]+$').hasMatch(text); }