Skip to content

Instantly share code, notes, and snippets.

@nikhilmufc7
Last active Jul 19, 2020
Embed
What would you like to do?
Future _getPurchaseHistory() async {
List<PurchasedItem> items =
await FlutterInappPurchase.instance.getPurchaseHistory();
for (var item in items) {
print('${item.toString()}');
this._purchases.add(item);
}
setState(() {
this._items = [];
this._purchases = items;
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment