validate method
validate the fieldName
if matches the intented rules.
Implementation
String? validate(String fieldName, dynamic value) {
var checkValue =
parent?.validate(fieldName, value) ?? validateValue(fieldName, value);
return checkValue;
}