copyWith method

ReportEvent copyWith({
  1. String? id,
  2. BaseException? exception,
  3. Map<String, dynamic>? context,
  4. DateTime? timestamp,
  5. List<String>? fingerprints,
  6. List<Breadcrumb>? breadcrumbs,
  7. List<Attachment>? attachments,
  8. bool? handled,
})

Returns a copy of the event with updated fields.

Implementation

ReportEvent copyWith({
  String? id,
  BaseException? exception,
  Map<String, dynamic>? context,
  DateTime? timestamp,
  List<String>? fingerprints,
  List<Breadcrumb>? breadcrumbs,
  List<Attachment>? attachments,
  bool? handled,
}) {
  return ReportEvent(
    id: id ?? this.id,
    exception: exception ?? this.exception,
    context: context ?? this.context,
    timestamp: timestamp ?? this.timestamp,
    fingerprints: fingerprints ?? this.fingerprints,
    breadcrumbs: breadcrumbs ?? this.breadcrumbs,
    attachments: attachments ?? this.attachments,
    handled: handled ?? this.handled,
    payload: _payload,
  );
}