flexibleSync static method
FlexibleSyncConfiguration
flexibleSync(
- User user,
- List<
SchemaObject> schemaObjects, { - String? fifoFilesFallbackPath,
- String? path,
- List<
int> ? encryptionKey, - SyncErrorHandler syncErrorHandler = defaultSyncErrorHandler,
- ClientResetHandler clientResetHandler = const RecoverOrDiscardUnsyncedChangesHandler(onManualResetFallback: _defaultClientResetHandler),
- int? maxNumberOfActiveVersions,
- ShouldCompactCallback? shouldCompactCallback,
- int schemaVersion = 0,
Constructs a FlexibleSyncConfiguration
Implementation
static FlexibleSyncConfiguration flexibleSync(
User user,
List<SchemaObject> schemaObjects, {
String? fifoFilesFallbackPath,
String? path,
List<int>? encryptionKey,
SyncErrorHandler syncErrorHandler = defaultSyncErrorHandler,
ClientResetHandler clientResetHandler = const RecoverOrDiscardUnsyncedChangesHandler(onManualResetFallback: _defaultClientResetHandler),
int? maxNumberOfActiveVersions,
ShouldCompactCallback? shouldCompactCallback,
int schemaVersion = 0,
}) =>
FlexibleSyncConfiguration._(
user,
schemaObjects,
fifoFilesFallbackPath: fifoFilesFallbackPath,
path: path,
encryptionKey: encryptionKey,
syncErrorHandler: syncErrorHandler,
clientResetHandler: clientResetHandler,
maxNumberOfActiveVersions: maxNumberOfActiveVersions,
shouldCompactCallback: shouldCompactCallback,
schemaVersion: schemaVersion,
);