copyWith method
Review
copyWith({
- String? name,
- String? relativePublishTimeDescription,
- LocalizedText? text,
- LocalizedText? originalText,
- int? rating,
- AuthorAttribution? authorAttribution,
- DateTime? publishTime,
- String? flagContentUri,
- String? googleMapsUri,
Implementation
Review copyWith({
String? name,
String? relativePublishTimeDescription,
LocalizedText? text,
LocalizedText? originalText,
int? rating,
AuthorAttribution? authorAttribution,
DateTime? publishTime,
String? flagContentUri,
String? googleMapsUri,
}) {
return Review(
name: name ?? this.name,
relativePublishTimeDescription:
relativePublishTimeDescription ?? this.relativePublishTimeDescription,
text: text ?? this.text,
originalText: originalText ?? this.originalText,
rating: rating ?? this.rating,
authorAttribution: authorAttribution ?? this.authorAttribution,
publishTime: publishTime ?? this.publishTime,
flagContentUri: flagContentUri ?? this.flagContentUri,
googleMapsUri: googleMapsUri ?? this.googleMapsUri,
);
}