SKProductDiscountWrapper constructor
SKProductDiscountWrapper({
- required String price,
- required SKPriceLocaleWrapper priceLocale,
- required int numberOfPeriods,
- required SKProductDiscountPaymentMode paymentMode,
- required SKProductSubscriptionPeriodWrapper subscriptionPeriod,
- required String? identifier,
- required SKProductDiscountType type,
Creates an SKProductDiscountWrapper with the given discount details.
Implementation
// TODO(stuartmorgan): Temporarily ignore const warning in other parts of the
// federated package, and remove this.
// ignore: prefer_const_constructors_in_immutables
SKProductDiscountWrapper(
{required this.price,
required this.priceLocale,
required this.numberOfPeriods,
required this.paymentMode,
required this.subscriptionPeriod,
required this.identifier,
required this.type});