Request class

Execution request of an operation with variables.

Available extensions
Annotations

Constructors

Request.new({required Operation operation, Map<String, dynamic> variables = const <String, dynamic>{}, Context context = const Context()})
const

Properties

context Context
A Context to be passed along with a Request
final
hashCode int
The hash code for this object.
no setteroverride
isMutation bool

Available on Request, provided by the WithType extension

no setter
isQuery bool

Available on Request, provided by the WithType extension

no setter
isSubscription bool

Available on Request, provided by the WithType extension

no setter
operation Operation
Operation to be executed
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type → OperationType

Available on Request, provided by the WithType extension

no setter
variables Map<String, dynamic>
Variables of the operation for this request
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
updateContextEntry<T extends ContextEntry>(ContextUpdater<T?> update) Request
Clone this request updating an entry in the context
validatesStructureOf(Map<String, dynamic> data) bool

Available on Request, provided by the OperationDataValid extension

Returns true if the structure of data is valid according to request's structure. Returns true if the structure of data is valid according to request's structure.
withContextEntry<T extends ContextEntry>(T entry) Request
Clone this request adding an entry to context

Operators

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