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

Review({String? authorName, String? authorUrl, String? language, String? originalLanguage, String? profilePhotoUrl, int? rating, String? relativeTimeDescription, String? text, int? time})
Creates a Review instance.
Review.fromJson(Map<String, dynamic> json)
Creates a Review from JSON data.
factory

Properties

authorName String?
Name of the review author
getter/setter pair
authorUrl String?
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