ISyncService class abstract
Interface para o serviço de sincronização
Define os contratos para sincronização de dados entre o app e o servidor. Gerencia o estado de conectividade, fila de sincronização e recuperação de erros.
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
isOnline
→ ValueNotifier<
bool> -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
syncData
→ ValueNotifier<
SyncData> -
no setter
Methods
-
addToSyncQueue(
{required String entityType, required String entityId, required SyncOperation operation, required Map< String, dynamic> data, bool isFileToUpload = false}) → Future<void> -
canContinueWithoutSync(
) → Future< bool> -
clearCorruptedData(
) → Future< void> -
dispose(
) → void -
enterOfflineMode(
) → Future< void> -
forceSync(
) → Future< void> -
getPendingItemsCount(
) → Future< int> -
isBackgroundSyncActive(
) → Future< bool> -
logCreate(
{required String entityType, required String entityId, required Map< String, dynamic> data, bool isFileToUpload = false}) → Future<void> - Registra log de criação de entidade
-
logCustomOperation(
{required String entityType, required String entityId, required SyncOperation operation, required Map< String, dynamic> data, bool isFileToUpload = false}) → Future<void> - Registra operação customizada
-
logDelete(
{required String entityType, required String entityId, required Map< String, dynamic> data}) → Future<void> - Registra log de exclusão de entidade
-
logUpdate(
{required String entityType, required String entityId, required Map< String, dynamic> data, bool isFileToUpload = false}) → Future<void> - Registra log de atualização de entidade
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resetSyncState(
) → Future< void> -
startBackgroundSync(
) → Future< void> -
startSync(
) → Future< void> -
stopBackgroundSync(
) → Future< void> -
stopSync(
) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
-
triggerImmediateBackgroundSync(
) → Future< void>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getInstance(
) → ISyncService - Obtém a instância do serviço de sincronização