IValidationRule

Interface used to implement custom validation rules.

Description

The IValidationRule interface allows you to implement custom validation rules.

Instance methods

validate

Validates a given value against this rule.

void validate(String? path, Schema schema, dynamic value, List<ValidationRule> results)

  • path: String? - dot notation path to the value.
  • schema: Schema - schema this rule is called from
  • value: dynamic - value to be validated.
  • results: List<ValidationRule> - list with validation results.