copyWith method
CloudSyncConfig
copyWith(
{ - bool? enabled,
- String? endpoint,
- String? apiKey,
- String? projectId,
- int? batchSize,
- Duration? batchInterval,
- int? maxRetries,
- Duration? retryDelay,
- Duration? timeout,
- String? syncMinimumLevel,
- bool? enableCompression,
- bool? prioritizeErrors,
- 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,
);