CloudSyncConfig constructor

const CloudSyncConfig({
  1. bool enabled = false,
  2. String? endpoint,
  3. String? apiKey,
  4. String? projectId,
  5. int batchSize = 50,
  6. Duration batchInterval = const Duration(seconds: 30),
  7. int maxRetries = 3,
  8. Duration retryDelay = const Duration(seconds: 1),
  9. Duration timeout = const Duration(seconds: 10),
  10. String? syncMinimumLevel,
  11. Map<String, String>? headers,
  12. bool enableCompression = false,
  13. bool prioritizeErrors = true,
  14. int maxQueueSize = 1000,
})

Implementation

const CloudSyncConfig({
  this.enabled = false,
  this.endpoint,
  this.apiKey,
  this.projectId,
  this.batchSize = 50,
  this.batchInterval = const Duration(seconds: 30),
  this.maxRetries = 3,
  this.retryDelay = const Duration(seconds: 1),
  this.timeout = const Duration(seconds: 10),
  this.syncMinimumLevel,
  this.headers,
  this.enableCompression = false,
  this.prioritizeErrors = true,
  this.maxQueueSize = 1000,
});