validate method

  1. @mustCallSuper
bool validate({
  1. List<String>? optionalValidator,
})

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