validate method Null safety

  1. @override
void validate(
  1. String? path,
  2. Schema schema,
  3. dynamic value,
  4. List<ValidationResult> results
)
override

Validates the given value. None of the values set in this ExcludedRule object must exist in the value that is given for validation to pass.

  • path the dot notation path to the value that is to be validated.
  • schema (not used in this implementation).
  • value the value that is to be validated.
  • results the results of the validation.