copyWith method
ReportEvent
copyWith({
- String? id,
- BaseException? exception,
- Map<
String, dynamic> ? context, - DateTime? timestamp,
- List<
String> ? fingerprints, - List<
Breadcrumb> ? breadcrumbs, - List<
Attachment> ? attachments, - 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,
);
}