ProductCardItem class
One product in a ProductCard.
- Annotations
Constructors
- ProductCardItem({required String id, required String name, required num price, required String currency, num? compareAtPrice, String? imageUrl, String? url, String? sku, String? appStoreProductId, String? googlePlayProductId, String? basePlanId, String? offerId, String? billingPeriod, int? trialDays})
-
Creates a product.
const
- ProductCardItem.fromJson(Json j)
-
Parses the wire shape.
factory
Properties
- appStoreProductId → String?
-
App Store product id, when the shop sells this through in-app purchase
(set in the dashboard's product form).
final
- basePlanId → String?
-
Google Play subscriptions: the base plan to buy.
final
- billingPeriod → String?
-
Subscriptions: ISO 8601 billing period (
P1M,P1Y…).final - compareAtPrice → num?
-
Strike-through price.
final
- currency → String
-
Currency code.
final
- googlePlayProductId → String?
-
Google Play product id, when the shop sells this through in-app
purchase.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasStoreProduct → bool
-
Sold through in-app purchase on at least one store.
no setter
- id → String
-
Product id.
final
- imageUrl → String?
-
Image URL.
final
- name → String
-
Name.
final
- offerId → String?
-
Google Play subscriptions: the offer to apply (e.g. a free trial).
final
- price → num
-
Price.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sku → String?
-
SKU.
final
- trialDays → int?
-
Subscriptions: free trial days.
final
- url → String?
-
Product page URL.
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