Response class

Execution response

Annotations
  • @immutable

Constructors

Response({List<GraphQLError>? errors, Map<String, dynamic>? data, Context context = const Context(), required Map<String, dynamic> response})
const

Properties

context Context
A Context to be returned along with a Response
final
data Map<String, dynamic>?
Data returned executing the Request
final
errors List<GraphQLError>?
Error returned executing the Request
final
hashCode int
The hash code for this object.
no setteroverride
response Map<String, dynamic>
The raw http response
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override
updateContextEntry<T extends ContextEntry>(ContextUpdater<T?> update) Response
Clone this response updating an entry to context
withContextEntry<T extends ContextEntry>(T entry) Response
Clone this response adding an entry to context

Operators

operator ==(Object o) bool
The equality operator.
override