CloudSyncConfig constructor
const
CloudSyncConfig({
- bool enabled = false,
- String? endpoint,
- String? apiKey,
- String? projectId,
- int batchSize = 50,
- Duration batchInterval = const Duration(seconds: 30),
- int maxRetries = 3,
- Duration retryDelay = const Duration(seconds: 1),
- Duration timeout = const Duration(seconds: 10),
- String? syncMinimumLevel,
- Map<
String, String> ? headers, - bool enableCompression = false,
- bool prioritizeErrors = true,
- 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,
});