SKProductWrapper class
Dart wrapper around StoreKit's SKProduct.
A list of SKProductWrapper is returned in the SKRequestMaker.startProductRequest method, and should be stored for use when making a payment.
- Annotations
-
- @JsonSerializable()
- @immutable
Constructors
-
SKProductWrapper({required String productIdentifier, required String localizedTitle, required String localizedDescription, required SKPriceLocaleWrapper priceLocale, String? subscriptionGroupIdentifier, required String price, SKProductSubscriptionPeriodWrapper? subscriptionPeriod, SKProductDiscountWrapper? introductoryPrice, List<
SKProductDiscountWrapper> discounts = const <SKProductDiscountWrapper>[]}) - Creates an SKProductWrapper with the given product details.
-
SKProductWrapper.fromJson(Map<
String, dynamic> map) -
Constructing an instance from a map from the Objective-C layer.
factory
Properties
-
discounts
→ List<
SKProductDiscountWrapper> -
An array of subscription offers available for the auto-renewable subscription (available on iOS 12.2 and higher).
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- introductoryPrice → SKProductDiscountWrapper?
-
The object represents the duration of single subscription period.
final
- localizedDescription → String
-
The localized description of the product.
final
- localizedTitle → String
-
The localizedTitle of the product.
final
- price → String
-
The price of the product, 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 - productIdentifier → String
-
The unique identifier of the product.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subscriptionGroupIdentifier → String?
-
The subscription group identifier.
final
- subscriptionPeriod → SKProductSubscriptionPeriodWrapper?
-
The object represents the subscription period of the product.
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(
SKProductMessage msg) → SKProductWrapper -
Convert from
SKProductMessage
to SKProductWrapper -
convertToPigeon(
SKProductWrapper wrapper) → SKProductMessage -
Convert from SKProductWrapper to
SKProductMessage