SyncService class abstract

Constructors

SyncService()

Properties

hashCode int
The hash code for this object.
no setterinherited
isSyncInProgress bool
Returns true if sync is in-progress; else false.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addProgressListener(SyncProgressListener listener) → void
Adds a listener that is notified about SyncProgress
isInSync() Future<bool>
Returns true if local and cloud secondary are in sync. false otherwise
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeAllProgressListeners() → void
Remove all progress listeners
removeProgressListener(SyncProgressListener listener) → void
Removes a sync progress listener
setOnDone(Function onDone) → void
Call this method to set the Global onDone callback. This method will be called when a sync is completed. When a specific onDone function is passed to the sync Function, Then the specific onDone is called.
sync({Function? onDone, Function? onError}) → void
Sync local secondary and cloud secondary.
toString() String
A string representation of this object.
inherited

Operators

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