flexibleSync static method

FlexibleSyncConfiguration flexibleSync(
  1. User user,
  2. List<SchemaObject> schemaObjects, {
  3. String? fifoFilesFallbackPath,
  4. String? path,
  5. List<int>? encryptionKey,
  6. SyncErrorHandler syncErrorHandler = defaultSyncErrorHandler,
  7. ClientResetHandler clientResetHandler = const RecoverOrDiscardUnsyncedChangesHandler(onManualResetFallback: _defaultClientResetHandler),
  8. int? maxNumberOfActiveVersions,
  9. ShouldCompactCallback? shouldCompactCallback,
  10. int schemaVersion = 0,
})

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,
    );