copyWith method

DatadogLogEvent copyWith({
  1. String? eventName,
  2. String? eventMessage,
  3. Map<String, Object>? parameters,
  4. List<String>? tags,
  5. String? source,
  6. String? host,
  7. String? service,
  8. String? env,
  9. String? traceId,
  10. String? spanId,
  11. Map<String, dynamic>? attributes,
})

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