SyncQueue class

The sync queue contract.

Constructors

SyncQueue(Collection<String> _collection)

Properties

collection → Collection<String>
Access the backing collection.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stream → Stream<List<SyncEvent>>
Continuous flow that emits events whenever the sync event queue undergoes changes.
no setter

Methods

clearCompleted() → Future<void>
Clears all completed sync events or purges the entire queue depending on the strategy.
enqueue(SyncEvent event) → Future<void>
Adds a new sync event to the sending queue.
getPendingEvents() → Future<List<SyncEvent>>
Gets all sync events that are marked with pending.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
updateEventState(String id, SyncEventState newState) → Future<void>
Updates the state of a specific sync event identified by its ID.

Operators

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