performValidation method

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

Validates a given value against the schema and configured validation rules.

  • path a dot notation path to the value.
  • value a value to be validated.
  • results a list with validation results to add new results.

Implementation

@override
void performValidation(
    String? path, dynamic value, List<ValidationResult> results) {
  if (getName() != null) {
    path = path != '' && path != null ? path + '.' + getName()! : getName()!;
  }

  super.performValidation(path, value, results);

  super.performTypeValidation(path, getType(), value, results);
}