WooReview class
A customer's review of a product.
Constructors
-
WooReview({required int id, required int productId, required int rating, required String review, required Map<
String, Object?> raw, String status = 'approved', String reviewer = '', String reviewerEmail = '', String reviewerAvatar = '', bool verified = false, DateTime? dateCreated}) -
Creates a review.
const
-
WooReview.fromJson(Map<
String, Object?> json) -
Reads WooCommerce's representation.
factory
Properties
- dateCreated → DateTime?
-
When it was written.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
Review id.
final
- isApproved → bool
-
Whether it is publicly visible.
no setter
- productId → int
-
The product reviewed.
final
- rating → int
-
One to five.
final
-
raw
→ Map<
String, Object?> -
The whole review as the store sent it.
final
- review → String
-
The text, as HTML.
final
- reviewer → String
-
Who wrote it.
final
- reviewerAvatar → String
-
A Gravatar URL for them.
final
- reviewerEmail → String
-
Their email. Only present to an authenticated admin.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → String
-
approved,hold,spam,unspam,trash, oruntrash.final - verified → bool
-
Whether they actually bought the product.
final
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