validate method
Validates Data
Implementation
@mustCallSuper
bool validate({List<String>? optionalValidator}) {
if (optionalValidator != null) {
return FieldValidator.validate(optionalValidator, getData()) &&
FieldValidator.validate(validator, getData());
}
return FieldValidator.validate(validator, getData());
}