ValidationResult class

The result of attempting to validate input data.

Constructors

ValidationResult()

Properties

data Map<String, dynamic>
The successfully validated data, filtered from the original input.
read-only
errors List<String>
A list of errors that resulted in the given data being marked invalid. [...]
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited
withData(Map<String, dynamic> data) ValidationResult
withErrors(Iterable<String> errors) ValidationResult

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited