InAppPurchaseItem class
A model class for each in app purchase item.
Constructors
- InAppPurchaseItem({required String productId, required Function onPurchaseComplete, required Function onPurchaseRefunded, bool isConsumable = false})
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- isConsumable ↔ bool
-
This checks if the product is consumable.
getter/setter pair
- onPurchaseComplete ↔ Function
-
This function will get executed when productId product is successfully purchased.
getter/setter pair
- onPurchaseRefunded ↔ Function
-
This will get executed when productId product is refunded.
getter/setter pair
- productId ↔ String
-
This is the unique product id for in app purchase
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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 o) → bool -
The equality operator.
override