copyWith method
Returns a copy with the specified fields replaced.
Implementation
FeedbackEntry copyWith({
String? category,
String? message,
String? platform,
String? appVersion,
DateTime? createdAt,
List<String>? screenshots,
FeedbackMetadata? metadata,
FeedbackSessionContext? sessionContext,
int? rating,
int? npsScore,
}) {
return FeedbackEntry(
category: category ?? this.category,
message: message ?? this.message,
platform: platform ?? this.platform,
appVersion: appVersion ?? this.appVersion,
createdAt: createdAt ?? this.createdAt,
screenshots: screenshots ?? this.screenshots,
metadata: metadata ?? this.metadata,
sessionContext: sessionContext ?? this.sessionContext,
rating: rating ?? this.rating,
npsScore: npsScore ?? this.npsScore,
);
}