FFXPurchaseState class

The end user's purchases, and what the app sells.

Constructors

FFXPurchaseState.fromJson(Map<String, Object?> json)

Properties

credits → FFXCredits?
The app's credits as they stand for the end user; null when it sells none.
final
hashCode → int
The hash code for this object.
no setterinherited
owned → Set<String>
The unlocks the end user owns, by their name in the payments config.
final
products → List<FFXProduct>
What the app sells, in the order the config lists it.
final
purchaseId → String
Pass it to the store with every purchase (applicationUserName), so the store hands it back with the purchase.
final
purchases → List<FFXPurchase>
Their purchases, newest first.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
upgrade → FFXUpgrade?
The upgrade as it stands; null when the app sells none.
final
upgraded → bool
Whether the end user has the upgrade now.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
owns(String unlock) → bool
Whether the end user owns unlock, as the payments config names it.
productFor(FFXStore store, String productId, {String? basePlan}) → FFXProduct?
The product store calls productId (with its basePlan, for a Google Play subscription); null when the app doesn't sell it.
toString() → String
A string representation of this object.
inherited

Operators

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