StoreProduct constructor

const StoreProduct({
  1. required String id,
  2. required ProductType type,
  3. required ProductCategory productCategory,
  4. required String displayName,
  5. String? description,
  6. String? priceString,
  7. double? price,
  8. String? currencyCode,
  9. RovenuePeriod? subscriptionPeriod,
  10. String? subscriptionGroupIdentifier,
  11. required bool isFamilyShareable,
  12. IntroPrice? introPrice,
  13. required List<Discount> discounts,
  14. bool? isEligibleForIntroOffer,
  15. List<SubscriptionOption>? subscriptionOptions,
  16. SubscriptionOption? defaultOption,
  17. double? pricePerWeek,
  18. double? pricePerMonth,
  19. double? pricePerYear,
  20. String? pricePerWeekString,
  21. String? pricePerMonthString,
  22. String? pricePerYearString,
})

Implementation

const StoreProduct({
  required this.id,
  required this.type,
  required this.productCategory,
  required this.displayName,
  this.description,
  this.priceString,
  this.price,
  this.currencyCode,
  this.subscriptionPeriod,
  this.subscriptionGroupIdentifier,
  required this.isFamilyShareable,
  this.introPrice,
  required this.discounts,
  this.isEligibleForIntroOffer,
  this.subscriptionOptions,
  this.defaultOption,
  this.pricePerWeek,
  this.pricePerMonth,
  this.pricePerYear,
  this.pricePerWeekString,
  this.pricePerMonthString,
  this.pricePerYearString,
});