copyWith method
Review
copyWith(
{ - String? authorName,
- String? authorUrl,
- String? language,
- String? originalLanguage,
- String? profilePhotoUrl,
- int? rating,
- String? relativeTimeDescription,
- String? text,
- int? time,
- 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,
);
}