copyWith method

FeedbackEntry copyWith({
  1. String? category,
  2. String? message,
  3. String? platform,
  4. String? appVersion,
  5. DateTime? createdAt,
  6. List<String>? screenshots,
  7. FeedbackMetadata? metadata,
  8. FeedbackSessionContext? sessionContext,
  9. int? rating,
  10. int? npsScore,
})

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