Request class

Execution request of an operation with variables.

Annotations
  • @immutable

Constructors

Request({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
operation Operation
Operation to be executed
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
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
withContextEntry<T extends ContextEntry>(T entry) Request
Clone this request adding an entry to context

Operators

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