QueryResponse<DataType, ErrorType> class

Class used for GraphQL api responses

Constructors

QueryResponse({DataType? data, ErrorType? errorType, OperationException? exception, bool? loading, bool? optimistic, QueryResultSource? source, DateTime? timestamp})

Properties

data ↔ DataType?
getter/setter pair
errorCode String?
no setter
errorMessage String?
no setter
errors List<ErrorType>
no setter
errorStatusCode int?
no setter
exception ↔ OperationException?
getter/setter pair
hasException bool
Whether the response includes an exception
no setter
hashCode int
The hash code for this object.
no setterinherited
isSuccessful bool
Whether the response includes an exception
no setter
loading bool
Whether data has been specified from either the cache or network)
no setter
mainError → ErrorType?
no setter
mainGraphQLError → GraphQLError?
no setter
optimistic bool
Whether an optimistic result has been specified (may include eager results from the cache)
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source ↔ QueryResultSource?
The source of the result data.
getter/setter pair
timestamp DateTime
getter/setter pair

Methods

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

Static Methods

fromListQueryResult<DataType, ErrorType>({required DataTypeQueryResponseConverter<List<DataType>?> dataTypeResponseConverter, QueryResult<Object?>? queryResult, ErrorType? errorType}) QueryResponse<List<DataType>, ErrorType>
fromMapQueryResult<DataType, ErrorType>({required DataTypeQueryResponseConverter<DataType?> dataTypeResponseConverter, QueryResult<Object?>? queryResult, ErrorType? errorType}) QueryResponse<DataType, ErrorType>