Product class

A Microsoft Store product and its purchasable SKUs.

Constructors

Product({required String? title, required String? description, required String? price, required bool? inCollection, required String? productKind, required String? storeId, String? inAppOfferToken, String? language, StorePrice? storePrice, List<StoreSku> skus = const [], String? extendedJsonData})
Creates a Store product value.
const
Product.fromJson(Map<String, dynamic> json)
Creates a product from the plugin's structured channel payload.
factory

Properties

description → String?
Localized product description.
final
extendedJsonData → String?
Raw extended JSON supplied by Microsoft Store.
final
formattedTitle → String?
A compact, backwards-compatible display string.
no setter
hashCode → int
The hash code for this object.
no setterinherited
inAppOfferToken → String?
Developer-defined offer token, when configured.
final
inCollection → bool?
Whether any SKU is in the current user's collection.
final
isSubscription → bool
Whether any SKU in this product is a subscription.
no setter
language → String?
Language used by the localized Store metadata.
final
price → String?
Backwards-compatible formatted default price.
final
productKind → String?
Microsoft Store product kind, such as Durable or Consumable.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
skus → List<StoreSku>
SKUs offered for this product.
final
storeId → String?
Microsoft Store Product Store ID.
final
storePrice → StorePrice?
Product-level price information.
final
title → String?
Localized product title.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this product to a JSON-compatible map.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited