copyWith method

Review copyWith({
  1. String? name,
  2. String? relativePublishTimeDescription,
  3. LocalizedText? text,
  4. LocalizedText? originalText,
  5. int? rating,
  6. AuthorAttribution? authorAttribution,
  7. DateTime? publishTime,
  8. String? flagContentUri,
  9. 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,
  );
}