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