tryValidate method
Validates the form field value
Implementation
@override
String? tryValidate() {
assert(extra.isNotEmpty, "Values to check from is required");
final extraToList = extra.split(",");
if (!extraToList.contains(value)) {
if (customMessage == null) {
return buildMessage(ValidatorStrings.inRes, attribute, extra);
}
return customMessage;
}
return null;
}