SyncProgressEventBus class
A per-context broadcast stream of SyncProgress events. Owned by DbContext (one instance per context). Subscribers always see the latest event first (replay-1), so a late UI can show "currently applying" the moment it starts listening.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- latest → SyncProgress
-
The latest SyncProgress event. Updated
synchronously by emit (before the
stream listener fires).
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stream
→ Stream<
SyncProgress> -
Subscribes to the stream of SyncProgress
events. New subscribers always receive the
latest event first (replay-1), then any
future events.
no setter
Methods
-
close(
) → Future< void> -
Closes the stream. Called by
DbContext.dispose(and by tests intearDown). -
emit(
SyncProgress progress) → void - Emits a SyncProgress event. Updates latest synchronously (so a listener that subscribes immediately after the emit still sees the value).
-
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