StreamQueueTransaction<T> class Null safety

A transaction on a StreamQueue, created by StreamQueue.startTransaction.

Copies of the parent queue may be created using newQueue. Calling commit moves the parent queue to a copy's position, and calling reject causes it to continue as though StreamQueue.startTransaction was never called.

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

commit(StreamQueue<T> queue) → void
Commits a queue created using newQueue.
newQueue() StreamQueue<T>
Creates a new copy of the parent queue.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
reject() → void
Rejects this transaction without updating the parent queue.
toString() String
A string representation of this object.
inherited

Operators

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