QueryResult class

Constructors

QueryResult({dynamic data, List<GraphQLError> errors, bool loading, bool optimistic, QueryResultSource source })

Properties

data ↔ dynamic
List or Map<String, dynamic>
read / write
errors ↔ List<GraphQLError>
read / write
hasErrors → bool
Whether the response includes any graphql errors
read-only
loading → bool
Whether data has been specified from either the cache or network)
read-only
optimistic → bool
Whether an optimistic result has been specified (may include eager results from the cache)
read-only
source QueryResultSource
The source of the result data. [...]
read / write
timestamp ↔ DateTime
read / write
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

addError(GraphQLError graphQLError) → void
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

Operators

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