NamiEntitlement class

This object represents what features a device has access to in an app.

Constructors

NamiEntitlement(String? name, String? description, String referenceId, List<NamiSKU> relatedSKUs, List<NamiSKU> purchasedSKUs, List<NamiPurchase> activePurchases)
NamiEntitlement.fromMap(Map map)
factory

Properties

activePurchases List<NamiPurchase>
The last known Purchases that unlocked this entitlement. There must be a corresponding NamiSKU associated to this NamiPurchase. That NamiSKU must reside in purchasedSKUs.
final
description String?
Description of entitlement
final
hashCode int
The hash code for this object.
no setterinherited
name String?
Friendly name of entitlement
final
purchasedSKUs List<NamiSKU>
The list of NamiSKU purchased by the user that actually unlock this entitlement
final
referenceId String
The unique ID of the entitlement defined in the Nami Control Center, use this to refer to the system when referencing an entitlement.
final
relatedSKUs List<NamiSKU>
The list of possible NamiSKU that would unlock this entitlement
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

isActive() bool
Return true if there is at least one purchase that unlocked this entitlement. It's possible the user didn't purchase a SKU on user's current device platform but they did make a transaction on a different device platform. To enable the entitlement under this context, activePurchases will have at least one item to activate the entitlement.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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