ProductDetails class

The class represents the information of a product.

This class unifies the BillingClient's SkuDetailsWrapper and StoreKit's SKProductWrapper. You can use the common attributes in This class for simple operations. If you would like to see the detailed representation of the product, instead, use skuDetails on Android and skProduct on iOS.

Constructors

ProductDetails({@required String id, @required String title, @required String description, @required String price, SKProductWrapper skProduct, SkuDetailsWrapper skuDetail})
ProductDetails.fromSKProduct(SKProductWrapper product)
Generate a ProductDetails object based on an iOS SKProductWrapper object.
ProductDetails.fromSkuDetails(SkuDetailsWrapper skuDetails)
Generate a ProductDetails object based on an Android SkuDetailsWrapper object.

Properties

description String
The description of the product, specified in the App Store Connect or Sku in Google Play console based on the platform.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
id String
The identifier of the product, specified in App Store Connect or Sku in Google Play console.
final
price String
The price of the product, specified in the App Store Connect or Sku in Google Play console based on the platform. Formatted with currency symbol ("$0.99").
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
skProduct SKProductWrapper
Points back to the StoreKits's SKProductWrapper object that generated this ProductDetails object. [...]
final
skuDetail SkuDetailsWrapper
Points back to the BillingClient1's SkuDetailsWrapper object that generated this ProductDetails object. [...]
final
title String
The title of the product, specified in the App Store Connect or Sku in Google Play console based on the platform.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited