Review class
User review for a place.
Contains complete review information including author details, rating, text content, language, and timing information.
Example:
for (final review in place.reviews ?? []) {
print('${review.authorName}: ${review.rating}/5');
print(review.text);
print('Posted ${review.relativeTimeDescription}');
}
Constructors
Properties
-
Name of the review author
getter/setter pair
-
URL to the author's Google profile
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- language ↔ String?
-
Language code of the review text (e.g., "en")
getter/setter pair
- originalLanguage ↔ String?
-
Original language if translated
getter/setter pair
- profilePhotoUrl ↔ String?
-
URL to the author's profile photo
getter/setter pair
- rating ↔ int?
-
Rating (1-5 stars)
getter/setter pair
- relativeTimeDescription ↔ String?
-
Human-readable time description (e.g., "2 weeks ago")
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text ↔ String?
-
Full review text content
getter/setter pair
- time ↔ int?
-
Unix timestamp of when the review was posted
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited