SyncRepository class abstract
The reposotory for work with synchronization.
By default the synchronization is off (see. isEnabled), you should turn it on when log in complete, because if user is not logged in, than it can't sync data.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
isEnabled
→ Future<
bool> -
true
if synchronization is on.no setter -
lastSyncDate
→ Future<
DateTime?> -
Returns the date of the last synchronization with device time.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
state
→ Stream<
SyncStateInfo> -
Returns the synchronization job status stream.
no setter
Methods
-
clearAll(
) → Future< void> - Clear all sync data.
-
debugDoNotSendChanges(
) → void - Specifies that modified data should not be sent. As a rule, it is necessary for debugging when authorizing with other people's data.
-
disable(
) → Future< void> - Turn of synchronization.
-
dispose(
) → Future< void> - Used to release the memory allocated to variables when the repository is no longer in use.
-
enable(
int userId) → Future< void> - Turn on synchronization.
-
needSynchronize(
) → void - Mark that synchronization needs to be performed.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
synchronize(
) → Future< void> - Make synchronization with remote.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited