ValidationResult class

Result generated by schema validation

Constructors

ValidationResult([String? path, ValidationResultType? type, String? code, String? message, dynamic expected, dynamic actual])
Creates a new instance of validation ressult and sets its values.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getActual() → dynamic
Gets the actual value found by schema validation.
getCode() String
Gets the error code.
getExpected() → dynamic
Gets the value expected by schema validation.
getMessage() String
Gets the human readable message.
getPath() String
Gets dot notation path of the validated element.
getType() ValidationResultType
Gets the type of the validation result: Information, Warning, or Error.
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