flutter_sync_tree library

Classes

RetryConfig
Configuration for retry logic using an exponential backoff strategy.
SyncComposite
A container node that orchestrates multiple SyncNodes (Leafs or other Composites).
SyncFailure
The state representing a failure, capturing the origin node where the error occurred.
SyncInitial
The state before any synchronization tasks have been initiated.
SyncInProgress
Represents an active synchronization process, providing details about the origin node that triggered the update.
SyncLeaf<T>
A leaf node in the synchronization tree that executes the actual workload.
SyncLog
Utility for logging synchronization events with distinct icons for tree levels.
SyncNode
The base abstract class for all synchronization units, including Leaves and Composites.
SyncPaused
The state indicating that the synchronization process is currently suspended.
SyncState
A sealed class hierarchy representing the immutable state of the synchronization system.
SyncStopped
The state indicating that the synchronization process was explicitly terminated.
SyncSuccess
The state indicating that the entire synchronization tree has completed successfully.
SyncSummary
An immutable value object representing the statistical breakdown of a synchronization task.
SyncTaskState
A mutable state container that tracks progress and statistics for a discrete task.
Throttler<T>
A utility class to throttle updates based on value changes and time intervals.
ThrottlerConfig
Configuration to throttle progress updates, optimizing UI rendering performance.

Enums

SyncStatus
Defines the lifecycle states of a synchronization process.

Mixins

SummaryGetter
An interface for accessing statistical counters related to synchronization operations.
SyncGetter
A mixin providing derived state logic and status flags for SyncNode.

Extensions

SyncStateX on SyncState
Convenience extensions for evaluating SyncState types.

Typedefs

OnSyncNotify = void Function(SyncStatus status, SyncNode origin)
Callback for observing synchronization lifecycle events.
OnSyncOperation = Future<void> Function(String operation, {int count})
Callback for reporting discrete synchronization operations (e.g., 'add', 'update').