SKProductDiscountWrapper class
Dart wrapper around StoreKit's SKProductDiscount.
It is used as a property in SKProductWrapper.
- Annotations
-
- @JsonSerializable()
- @immutable
Constructors
- 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.
-
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
- identifier → String?
-
A string used to uniquely identify a discount offer for a product.
final
- 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
- type → SKProductDiscountType
-
Values representing the types of discount offers an app can present.
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
Static Methods
-
convertFromPigeon(
SKProductDiscountMessage msg) → SKProductDiscountWrapper -
Convert from
SKProductDiscountMessage
to SKProductDiscountWrapper -
convertToPigeon(
SKProductDiscountWrapper wrapper) → SKProductDiscountMessage -
Convert from SKProductDiscountWrapper to
SKProductDiscountMessage