ValidationResult<Value> class

Represents the result of asserting an input value against a GraphQLType.

Constructors

ValidationResult.failure(List<String> errors)
const
ValidationResult.ok(Value _value)
const

Properties

errors List<String>
A list of errors that caused validation to fail.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
successful bool
true if there were no errors during validation.
final
value → Value?
The input value passed to whatever caller invoked validation.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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