copyWith method

Review copyWith({
  1. String? authorName,
  2. String? authorUrl,
  3. String? language,
  4. String? originalLanguage,
  5. String? profilePhotoUrl,
  6. int? rating,
  7. String? relativeTimeDescription,
  8. String? text,
  9. int? time,
  10. bool? translated,
})

Implementation

Review copyWith({
  String? authorName,
  String? authorUrl,
  String? language,
  String? originalLanguage,
  String? profilePhotoUrl,
  int? rating,
  String? relativeTimeDescription,
  String? text,
  int? time,
  bool? translated,
}) {
  return Review(
    authorName: authorName ?? this.authorName,
    authorUrl: authorUrl ?? this.authorUrl,
    language: language ?? this.language,
    originalLanguage: originalLanguage ?? this.originalLanguage,
    profilePhotoUrl: profilePhotoUrl ?? this.profilePhotoUrl,
    rating: rating ?? this.rating,
    relativeTimeDescription:
        relativeTimeDescription ?? this.relativeTimeDescription,
    text: text ?? this.text,
    time: time ?? this.time,
    translated: translated ?? this.translated,
  );
}