SKProductDiscountWrapper class

Dart wrapper around StoreKit's SKProductDiscount.

It is used as a property in SKProductWrapper.

Annotations
  • @JsonSerializable()

Constructors

SKProductDiscountWrapper({required String price, required SKPriceLocaleWrapper priceLocale, required int numberOfPeriods, required SKProductDiscountPaymentMode paymentMode, required SKProductSubscriptionPeriodWrapper subscriptionPeriod})
Creates an SKProductDiscountWrapper with the given discount details.
SKProductDiscountWrapper.fromJson(Map<String, dynamic> map)
Constructing an instance from a map from the Objective-C layer.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
numberOfPeriods int
The object represent the discount period length.
final
paymentMode SKProductDiscountPaymentMode
The object indicates how the discount price is charged.
final
price String
The discounted price, in the currency that is defined in priceLocale.
final
priceLocale SKPriceLocaleWrapper
Includes locale information about the price, e.g. $ as the currency symbol for US locale.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subscriptionPeriod SKProductSubscriptionPeriodWrapper
The object represents the duration of single subscription period for the discount.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override