SKProductWrapper constructor

SKProductWrapper({
  1. required String productIdentifier,
  2. required String localizedTitle,
  3. required String localizedDescription,
  4. required SKPriceLocaleWrapper priceLocale,
  5. String? subscriptionGroupIdentifier,
  6. required String price,
  7. SKProductSubscriptionPeriodWrapper? subscriptionPeriod,
  8. SKProductDiscountWrapper? introductoryPrice,
  9. List<SKProductDiscountWrapper> discounts = const <SKProductDiscountWrapper>[],
})

Creates an SKProductWrapper with the given product details.

Implementation

SKProductWrapper({
  required this.productIdentifier,
  required this.localizedTitle,
  required this.localizedDescription,
  required this.priceLocale,
  this.subscriptionGroupIdentifier,
  required this.price,
  this.subscriptionPeriod,
  this.introductoryPrice,
  this.discounts = const <SKProductDiscountWrapper>[],
});