SyncConfigurator class

Configurador principal do sistema de sincronização

Esta classe simplifica a configuração do sync, permitindo que o usuário implemente apenas um SyncConfig e tenha todo o sistema funcionando.

Constructors

SyncConfigurator()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

isInitialized → bool
Verifica se o configurador foi inicializado
no setter
provider → SyncConfig?
Obtém o provider atual
no setter
syncService → ISyncService
Obtém o serviço de sync (após inicialização)
no setter

Static Methods

configureTheme(SyncTheme theme) → void
Método de conveniência para configurar tema personalizado
getCurrentConfig() → Map<String, dynamic>
Método de conveniência para obter configurações atuais
initialize({required SyncConfig provider, bool registerInGetIt = true, List<IDownloadStrategy>? downloadStrategies}) → Future<void>
Inicializa o sistema de sync com o provider fornecido
reset() → void
Reseta o configurador (útil para testes)
validateConfiguration() → List<String>
Método de conveniência para validar configuração