InitialSyncService class abstract
Public interface for the initial sync service. Manages event-driven synchronization with Fero's central server.
- Implementers
Constructors
Properties
-
eventStream
→ Stream<
SyncEvent> -
Stream of sync events (from server and local operations).
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
- status → InitialSyncStatus
-
Current status of initial sync.
no setter
-
statusStream
→ Stream<
InitialSyncStatus> -
Stream of status changes during initial sync.
no setter
Methods
-
cancel(
) → void - Cancel ongoing initial sync operation.
-
dispose(
) → void - Dispose and cleanup resources.
-
emitEvent(
SyncEvent event) → void - Manually emit a sync event (useful for testing or advanced scenarios).
-
getFeatureStatus(
String featureKey) → InitialSyncStatus? - Get the sync status for a specific feature.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
) → Future< void> - Run initial sync for all handlers.
-
startListeningToEvents(
) → Future< void> - Listen to incoming sync events from Fero server. This should be called once during app initialization.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited