ValidationResult class

The result of evaluating a ZenithValidator against a model.

Constructors

ValidationResult(List<ValidationError> errors)
Creates a ValidationResult.
const

Properties

errors → List<ValidationError>
List of validation errors encountered.
final
hashCode → int
The hash code for this object.
no setterinherited
isValid → bool
Whether all validation rules passed (no errors).
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

errorsFor(String propertyName) → List<String>
Returns error messages for a specific propertyName.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited