ValidationContext class abstract

ValidationContext is the public interface for an object keeping track of the current validation state. A concrete instance is passed into the validation function an updated is return from the validation function.

Constructors

ValidationContext()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
schemaVersion SchemaVersion
Draft Version of the keyword being validated
no setter

Methods

addError(String message) → void
Use addError to add a new error message to the validation context.
addWarning(String message) → void
Use addWarning to ad a new warning message to the validation context.
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