ReducerCaller class

Constructors

ReducerCaller(SpacetimeDbConnection _connection, {OfflineStorage? offlineStorage, MutationHandler? mutationHandler})

Properties

defaultTimeout Duration
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call(String reducerName, Uint8List args, {Duration? timeout, bool dropIfOffline = false, List<OptimisticChange>? optimisticChanges}) Future<TransactionResult>
callWithBytes(String reducerName, Uint8List args, {Duration? timeout, String? requestId}) Future<TransactionResult>
completeRequest(int requestId, TransactionResult result) bool
Completes the pending request with the given requestId. Returns true if the request was found and completed, false if no pending request matched (e.g. requestId=0 from a protocol-level server error).
dispose() → void
failAllPendingRequests(String reason) → void
getUuidForRequest(int requestId) String?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pendingArgs(int requestId) Uint8List?
BSATN-encoded args the SDK sent for the in-flight request. Used by the caller-side ReducerResult handler to construct the ReducerEvent without re-decoding from the (non-existent) wire copy.
pendingReducerName(int requestId) String?
Reducer name of the in-flight request, or null when the id is unknown (e.g. protocol-level server error with request_id = 0).
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited