OfferOfferData constructor

const OfferOfferData({
  1. required OfferFlowType flowType,
  2. required String productId,
  3. required List<String> eligibleProductIds,
  4. required int savingsPercent,
  5. required OfferDisplay display,
  6. required int freeTrialDays,
  7. required int minSubscriptionDays,
  8. int? maxSubscriptionDays,
  9. int? rolloutPercent,
  10. OfferUpgradeType? upgradeType,
  11. String? fromProductId,
  12. String? toProductId,
  13. int? variantId,
  14. Map<String, OfferPerProductOffer>? perProductPrompts,
  15. OfferCheckoutPresentation? checkoutPresentation,
})

Implementation

const OfferOfferData({
  required this.flowType,
  required this.productId,
  required this.eligibleProductIds,
  required this.savingsPercent,
  required this.display,
  required this.freeTrialDays,
  required this.minSubscriptionDays,
  this.maxSubscriptionDays,
  this.rolloutPercent,
  this.upgradeType,
  this.fromProductId,
  this.toProductId,
  this.variantId,
  this.perProductPrompts,
  this.checkoutPresentation,
});