AppProduct class

Constructors

AppProduct.new({String id = "", String name = "", String description = "", ProductType type = ProductType.service, Price? regularPrice, Price? salePrice, int qty = 0, String imgUrl = "", bool isAvailable = true, int numberOfSales = 0, double reviewStars = 10.0, Review? lastReview, List<String>? reviewIds, int createdTime = 0, int updatedTime = 0, String? ownerEmail})
AppProduct.clone(AppProduct product)
AppProduct.fromEvent(Event event)
AppProduct.fromJSON(dynamic data)
AppProduct.fromReleaseItem(AppReleaseItem releaseItem)
AppProduct.fromSubscriptionPlan(SubscriptionPlan plan)

Properties

createdTime int
getter/setter pair
description String
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String
getter/setter pair
imgUrl String
getter/setter pair
isAvailable bool
getter/setter pair
lastReview Review?
getter/setter pair
name String
getter/setter pair
numberOfSales int
getter/setter pair
ownerEmail String?
getter/setter pair
qty int
getter/setter pair
regularPrice Price?
getter/setter pair
reviewIds List<String>?
getter/setter pair
reviewStars double
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
salePrice Price?
getter/setter pair
type ProductType
getter/setter pair
updatedTime int
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJSON() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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