Product class
In-app purchase product such as consumables, non-consumables or subscriptions.
In order to use in-app purchases, first you must create products. There are 3 different product types:
- Consumables
- Non-consumables
- Subscriptions
- Auto renewable subscriptions
- Non-renewable subscriptions.
Constructors
-
Product(String? productId, String? uspAppId, String? defaultLanguage, List<
ProductLocale> ? productLocales, String? purchaseType, String? appleCurrency, String? applePrice, String? status, PriceInfo? defaultPrice, List<PriceInfo> ? prices, List<String> ? entitlements, String? subsPeriod, String? subGroupId, String? subGroupName, String? promotionId, String? trialPeriod, String? introductoryPeriod, PriceInfo? disDefaultPrice, PriceInfo? disPrice, List<PriceInfo> ? disPrices, String? gracePeriod, String? appleSyncStatus, SyncInfo? appleSyncInfo, String? huaweiPromotionPriority, String? googleSyncStatus, SyncInfo? googleSyncInfo, String? huaweiSyncStatus, SyncInfo? huaweiSyncInfo, List<PriceTier> ? applePriceDetails, PriceTier? appleActivePriceDetail, PriceInfo? originalPrice, String? promotionalPrice, SubscriptionDuration? subscriptionDuration, ProductOffer? productOffer) -
Product.fromJson(Map<
String, dynamic> json)
Properties
- appleActivePriceDetail → PriceTier?
-
final
- appleCurrency → String?
-
final
- applePrice → String?
-
final
-
applePriceDetails
→ List<
PriceTier> ? -
final
- appleSyncInfo → SyncInfo?
-
final
- appleSyncStatus → String?
-
final
- defaultLanguage → String?
-
final
- defaultPrice → PriceInfo?
-
final
- disDefaultPrice → PriceInfo?
-
final
- disPrice → PriceInfo?
-
final
-
disPrices
→ List<
PriceInfo> ? -
final
-
entitlements
→ List<
String> ? -
final
- googleSyncInfo → SyncInfo?
-
final
- googleSyncStatus → String?
-
final
- gracePeriod → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- huaweiPromotionPriority → String?
-
final
- huaweiSyncInfo → SyncInfo?
-
final
- huaweiSyncStatus → String?
-
final
- introductoryPeriod → String?
-
final
- originalPrice → PriceInfo?
-
final
-
prices
→ List<
PriceInfo> ? -
final
- productId → String?
-
final
-
productLocales
→ List<
ProductLocale> ? -
final
- productOffer → ProductOffer?
-
final
- promotionalPrice → String?
-
final
- promotionId → String?
-
final
- purchaseType → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → String?
-
final
- subGroupId → String?
-
final
- subGroupName → String?
-
final
- subscriptionDuration → SubscriptionDuration?
-
final
- subsPeriod → String?
-
final
- trialPeriod → String?
-
final
- uspAppId → String?
-
final
Methods
-
currency(
) → String - Returns the product currency regardless of platform information
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
price(
) → String - Returns the product price regardless of platform information
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited