cloneWith method

EventStoreClientOperationOptions cloneWith({
  1. Duration? timeoutAfter,
  2. int? batchAppendSize,
  3. bool? throwOnAppendFailure,
  4. Duration? batchAppendDeadline,
})

Clones a copy of the current <EventStoreClientOperationOptions.

Implementation

EventStoreClientOperationOptions cloneWith({
  Duration? timeoutAfter,
  int? batchAppendSize,
  bool? throwOnAppendFailure,
  Duration? batchAppendDeadline,
}) =>
    EventStoreClientOperationOptions(
      timeoutAfter: timeoutAfter,
      batchAppendSize: batchAppendSize ?? this.batchAppendSize,
      batchAppendDeadline: batchAppendDeadline ?? this.batchAppendDeadline,
      throwOnAppendFailure: throwOnAppendFailure ?? this.throwOnAppendFailure,
    );