tryValidate method
Validates the form field value
Implementation
@override
String? tryValidate() {
if (value.isEmpty) {
if (customMessage == null) {
return buildMessage(ValidatorStrings.required, attribute);
}
return customMessage;
}
return null;
}