Review class sealed

Annotations
  • @Freezed()

Constructors

Review.new({required String attribution, required AuthorAttribution authorAttribution, required double rating, required String publishTime, required String relativePublishTimeDescription, String? originalText, String? originalTextLanguageCode, String? text, String? textLanguageCode})
Constructs a Review object.
const
factory
Review.fromJson(Map<String, Object?> json)
Parse a Review from json.
factory

Properties

attribution String
The attribution that must be shown to the user if this review is displayed.
no setterinherited
authorAttribution AuthorAttribution
This review's AuthorAttribution.
no setterinherited
copyWith → $ReviewCopyWith<Review>
Create a copy of Review with the given fields replaced by the non-null parameter values.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
originalText String?
The text of the review in its original language.
no setterinherited
originalTextLanguageCode String?
The language code of the original text of the review.
no setterinherited
publishTime String
The publish time for the review, expressed in "yyyy-MM-dd HH:mm:ss" format of UTC timezone.
no setterinherited
rating double
A whole number between 1.0 and 5.0 (inclusive), meaning the number of stars.
no setterinherited
relativePublishTimeDescription String
A human-readable description of the relative publish time of a review, such as "a month ago", or "in the last week", based on the time elapsed.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String?
The text of the review.
no setterinherited
textLanguageCode String?
The language code of the text of the review.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this Review to a JSON map.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited