isAlphanumeric method
Checks if the string contains only alphanumeric characters.
Implementation
bool isAlphanumeric() {
return RegExp(r'^[a-zA-Z0-9]+$').hasMatch(this);
}
Checks if the string contains only alphanumeric characters.
bool isAlphanumeric() {
return RegExp(r'^[a-zA-Z0-9]+$').hasMatch(this);
}