copyWith method
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,
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,
);
}