alphaNumeric static method
Implementation
static FormFieldValidator<String> alphaNumeric({String? message}) {
return (fieldValue) {
if (Validator.isAlphaNumeric(fieldValue)) {
return null;
} else {
return message ?? "Field must contain both alphabets and numbers";
}
};
}