Skip to content

Instantly share code, notes, and snippets.

@nikhilmufc7
Last active July 19, 2020 10:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nikhilmufc7/93dcf02d556d8ba924a483d27668c7e6 to your computer and use it in GitHub Desktop.
Save nikhilmufc7/93dcf02d556d8ba924a483d27668c7e6 to your computer and use it in GitHub Desktop.
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