UserOfferData constructor

const UserOfferData({
  1. required UserOfferActionType actionType,
  2. required bool isEligible,
  3. String? checkoutProductId,
  4. String? fromProductId,
  5. required int savingsPercent,
  6. required int freeTrialDays,
  7. required int minSubscriptionDays,
  8. int? maxSubscriptionDays,
  9. required int rolloutPercent,
  10. UserOfferDisplay? display,
  11. UserOfferProration? proration,
  12. required bool requiresAppleCancel,
  13. UserOfferAppleSubscription? appleSubscription,
  14. String? checkoutPresentation,
  15. String? experimentVariantId,
  16. UserOfferSourceStorefront? source,
})

Implementation

const UserOfferData({
  required this.actionType,
  required this.isEligible,
  this.checkoutProductId,
  this.fromProductId,
  required this.savingsPercent,
  required this.freeTrialDays,
  required this.minSubscriptionDays,
  this.maxSubscriptionDays,
  required this.rolloutPercent,
  this.display,
  this.proration,
  required this.requiresAppleCancel,
  this.appleSubscription,
  this.checkoutPresentation,
  this.experimentVariantId,
  this.source,
});