ABUSManager class

Interaction manager

Properties

apiHandlerCount int
Get API handlers count
no setter
handlerCount int
Get registered handlers count
no setter
hashCode int
The hash code for this object.
no setterinherited
pendingCount int
Get pending snapshots count
no setter
pendingInteractions List<String>
Get pending interactions
no setter
resultStream Stream<ABUSResult>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearPending() → void
Clear all pending operations
confirmSuccess(String interactionId) → void
Confirm success and prevent auto-rollback
dispose() → void
execute(InteractionDefinition interaction, {bool? optimistic, Duration? timeout, bool autoRollback = true, BuildContext? context}) Future<ABUSResult>
Execute an interaction with proper queuing and safety
isPending(String interactionId) bool
Check if interaction is pending
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerApiHandler(Future<ABUSResult> handler(InteractionDefinition)) → void
Register a global API handler
registerHandler(AbusHandler handler) → void
Register any type of handler
rollback(String interactionId) Future<bool>
Manually rollback a specific interaction
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance ABUSManager
no setter

Static Methods

reset() → void
Reset to new instance (useful for testing)