copyWith method

IForeventsAPIConfig copyWith({
  1. String? projectKey,
  2. String? projectSecret,
  3. String? baseUrl,
  4. int? batchSize,
  5. int? batchIntervalMs,
  6. int? connectTimeoutMs,
  7. int? receiveTimeoutMs,
  8. int? sendTimeoutMs,
  9. bool? enableRetry,
  10. int? maxRetries,
  11. int? retryDelayMs,
  12. bool? enableLogging,
  13. bool? throwOnError,
  14. bool? requeueFailedEvents,
})

Implementation

IForeventsAPIConfig copyWith({
  String? projectKey,
  String? projectSecret,
  String? baseUrl,
  int? batchSize,
  int? batchIntervalMs,
  int? connectTimeoutMs,
  int? receiveTimeoutMs,
  int? sendTimeoutMs,
  bool? enableRetry,
  int? maxRetries,
  int? retryDelayMs,
  bool? enableLogging,
  bool? throwOnError,
  bool? requeueFailedEvents,
}) {
  return IForeventsAPIConfig(
    projectKey: projectKey ?? this.projectKey,
    projectSecret: projectSecret ?? this.projectSecret,
    baseUrl: baseUrl ?? this.baseUrl,
    batchSize: batchSize ?? this.batchSize,
    batchIntervalMs: batchIntervalMs ?? this.batchIntervalMs,
    connectTimeoutMs: connectTimeoutMs ?? this.connectTimeoutMs,
    receiveTimeoutMs: receiveTimeoutMs ?? this.receiveTimeoutMs,
    sendTimeoutMs: sendTimeoutMs ?? this.sendTimeoutMs,
    enableRetry: enableRetry ?? this.enableRetry,
    maxRetries: maxRetries ?? this.maxRetries,
    retryDelayMs: retryDelayMs ?? this.retryDelayMs,
    enableLogging: enableLogging ?? this.enableLogging,
    throwOnError: throwOnError ?? this.throwOnError,
    requeueFailedEvents: requeueFailedEvents ?? this.requeueFailedEvents,
  );
}