PurchaseStatus enum

Constants

error → const PurchaseStatus

Some error occurred in the purchase. The purchasing process if aborted.

const PurchaseStatus(2)
pending → const PurchaseStatus

The purchase process is pending.

You can update UI to let your users know the purchase is pending.

const PurchaseStatus(0)
purchased → const PurchaseStatus

The purchase is finished and successful.

Update your UI to indicate the purchase is finished and deliver the product. On Android, the google play store is handling the purchase, so we set the status to purchased as long as we can successfully launch play store purchase flow.

const PurchaseStatus(1)
values → const List<PurchaseStatus>

A constant List of the values in this enum, in order of their declaration.

const List<PurchaseStatus>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
override

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited