copyWith method

ProductAnalyticsOptions copyWith({
  1. bool? captureVendorId,
  2. bool? captureAdvertiserId,
  3. bool? clearEventPropertiesOnNewUser,
  4. bool? enableInteractionsAutocapture,
  5. bool? disablePageviewAutocapture,
  6. bool? disablePageviewTitleAutocapture,
  7. bool? disableInteractionAutocapture,
  8. bool? enablePushNotificationAutocapture,
  9. bool? enablePushNotificationTitleAutocapture,
  10. bool? enablePushNotificationBodyAutocapture,
  11. bool? resumePreviousSession,
  12. bool? disableScreenviewForwardToDXA,
  13. bool? disableScreenviewForwardToPA,
  14. Uri? baseUrl,
  15. Duration? uploadInterval,
  16. int? messageBatchByteLimit,
  17. int? messageBatchMessageLimit,
  18. int? pruningLookBackWindow,
  19. int? maximumDatabaseSize,
  20. int? maximumBatchCountPerUpload,
})

Creates a copy of this ProductAnalyticsOptions with the given fields replaced by the new values.

Implementation

ProductAnalyticsOptions copyWith({
  bool? captureVendorId,
  bool? captureAdvertiserId,
  bool? clearEventPropertiesOnNewUser,
  bool? enableInteractionsAutocapture,
  bool? disablePageviewAutocapture,
  bool? disablePageviewTitleAutocapture,
  bool? disableInteractionAutocapture,
  bool? enablePushNotificationAutocapture,
  bool? enablePushNotificationTitleAutocapture,
  bool? enablePushNotificationBodyAutocapture,
  bool? resumePreviousSession,
  bool? disableScreenviewForwardToDXA,
  bool? disableScreenviewForwardToPA,
  Uri? baseUrl,
  Duration? uploadInterval,
  int? messageBatchByteLimit,
  int? messageBatchMessageLimit,
  int? pruningLookBackWindow,
  int? maximumDatabaseSize,
  int? maximumBatchCountPerUpload,
}) {
  return ProductAnalyticsOptions(
    captureVendorId: captureVendorId ?? this.captureVendorId,
    captureAdvertiserId: captureAdvertiserId ?? this.captureAdvertiserId,
    clearEventPropertiesOnNewUser:
        clearEventPropertiesOnNewUser ?? this.clearEventPropertiesOnNewUser,
    enableInteractionsAutocapture:
        enableInteractionsAutocapture ?? this.enableInteractionsAutocapture,
    disablePageviewAutocapture:
        disablePageviewAutocapture ?? this.disablePageviewAutocapture,
    disablePageviewTitleAutocapture: disablePageviewTitleAutocapture ??
        this.disablePageviewTitleAutocapture,
    disableInteractionAutocapture:
        disableInteractionAutocapture ?? this.disableInteractionAutocapture,
    enablePushNotificationAutocapture: enablePushNotificationAutocapture ??
        this.enablePushNotificationAutocapture,
    enablePushNotificationTitleAutocapture:
        enablePushNotificationTitleAutocapture ??
            this.enablePushNotificationTitleAutocapture,
    enablePushNotificationBodyAutocapture:
        enablePushNotificationBodyAutocapture ??
            this.enablePushNotificationBodyAutocapture,
    resumePreviousSession:
        resumePreviousSession ?? this.resumePreviousSession,
    disableScreenviewForwardToDXA:
        disableScreenviewForwardToDXA ?? this.disableScreenviewForwardToDXA,
    disableScreenviewForwardToPA:
        disableScreenviewForwardToPA ?? this.disableScreenviewForwardToPA,
    baseUrl: baseUrl ?? this.baseUrl,
    uploadInterval: uploadInterval ?? this.uploadInterval,
    messageBatchByteLimit:
        messageBatchByteLimit ?? this.messageBatchByteLimit,
    messageBatchMessageLimit:
        messageBatchMessageLimit ?? this.messageBatchMessageLimit,
    pruningLookBackWindow:
        pruningLookBackWindow ?? this.pruningLookBackWindow,
    maximumDatabaseSize: maximumDatabaseSize ?? this.maximumDatabaseSize,
    maximumBatchCountPerUpload:
        maximumBatchCountPerUpload ?? this.maximumBatchCountPerUpload,
  );
}