copyWith method

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

Implementation

CloudSyncConfig copyWith({
  bool? enabled,
  String? endpoint,
  String? apiKey,
  String? projectId,
  int? batchSize,
  Duration? batchInterval,
  int? maxRetries,
  Duration? retryDelay,
  Duration? timeout,
  String? syncMinimumLevel,
  Map<String, String>? headers,
  bool? enableCompression,
  bool? prioritizeErrors,
  int? maxQueueSize,
}) =>
    CloudSyncConfig(
      enabled: enabled ?? this.enabled,
      endpoint: endpoint ?? this.endpoint,
      apiKey: apiKey ?? this.apiKey,
      projectId: projectId ?? this.projectId,
      batchSize: batchSize ?? this.batchSize,
      batchInterval: batchInterval ?? this.batchInterval,
      maxRetries: maxRetries ?? this.maxRetries,
      retryDelay: retryDelay ?? this.retryDelay,
      timeout: timeout ?? this.timeout,
      syncMinimumLevel: syncMinimumLevel ?? this.syncMinimumLevel,
      headers: headers ?? this.headers,
      enableCompression: enableCompression ?? this.enableCompression,
      prioritizeErrors: prioritizeErrors ?? this.prioritizeErrors,
      maxQueueSize: maxQueueSize ?? this.maxQueueSize,
    );