copyWith method

NewRelicLogEvent copyWith({
  1. String? eventName,
  2. String? eventMessage,
  3. Map<String, Object>? parameters,
  4. Map<String, dynamic>? attributes,
  5. String? entityName,
  6. String? entityType,
  7. String? host,
  8. String? environment,
  9. String? traceId,
  10. String? spanId,
})

Creates a copy of this event with updated values

Implementation

NewRelicLogEvent copyWith({
  String? eventName,
  String? eventMessage,
  Map<String, Object>? parameters,
  Map<String, dynamic>? attributes,
  String? entityName,
  String? entityType,
  String? host,
  String? environment,
  String? traceId,
  String? spanId,
}) {
  return NewRelicLogEvent(
    eventName: eventName ?? this.eventName,
    eventMessage: eventMessage ?? this.eventMessage,
    parameters: parameters ?? this.parameters,
    attributes: attributes ?? this.attributes,
    entityName: entityName ?? this.entityName,
    entityType: entityType ?? this.entityType,
    host: host ?? this.host,
    environment: environment ?? this.environment,
    traceId: traceId ?? this.traceId,
    spanId: spanId ?? this.spanId,
  );
}