validate method

String? validate(
  1. String fieldName,
  2. dynamic value
)

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;
}