tryValidate method
Validates the form field value
Implementation
@override
String? tryValidate() {
RegExp exp = RegExp(extra);
if (!exp.hasMatch(value)) {
if (customMessage == null) {
return buildMessage(ValidatorStrings.regex, attribute, extra);
}
return customMessage;
}
return null;
}