Validates if the given string contains only alphanumeric characters.
static bool isAlphanumeric(String input) { final regex = RegExp(r'^[a-zA-Z0-9]+\$'); return regex.hasMatch(input); }