SyncProgress class final
Progress of the current drain cycle. Emitted at the start (completed == 0)
and after every processed task.
Constructors
- SyncProgress({required int completed, required int total, required int remaining})
-
Creates the event.
const
Properties
- completed → int
-
Tasks this cycle finished: delivered or dead-lettered. A task that
failed and was rescheduled is still open and counts in remaining.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDone → bool
-
truewhen the outbox has nothing left to deliver.no setter - remaining → int
-
Pending + in-flight tasks still in the outbox, including those
scheduled for a later retry.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- total → int
-
completed + remaining. It can grow during the cycle if new requests
are queued meanwhile.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited