copyWith method
Creates a copy of this event with updated values
Implementation
DatadogLogEvent copyWith({
String? eventName,
String? eventMessage,
Map<String, Object>? parameters,
List<String>? tags,
String? source,
String? host,
String? service,
String? env,
String? traceId,
String? spanId,
Map<String, dynamic>? attributes,
}) {
return DatadogLogEvent(
eventName: eventName ?? this.eventName,
eventMessage: eventMessage ?? this.eventMessage,
parameters: parameters ?? this.parameters,
tags: tags ?? this.tags,
source: source ?? this.source,
host: host ?? this.host,
service: service ?? this.service,
env: env ?? this.env,
traceId: traceId ?? this.traceId,
spanId: spanId ?? this.spanId,
attributes: attributes ?? this.attributes,
);
}