consumeAsync method
Consumes a given in-app product.
Consuming can only be done on an item that's owned, and as a result of consumption, the user will no longer own it.
Consumption is done asynchronously. The method returns a Future containing a BillingResultWrapper
.
This wraps
BillingClient#consumeAsync(ConsumeParams, ConsumeResponseListener)
Implementation
Future<BillingResultWrapper> consumeAsync(String purchaseToken) async {
return resultWrapperFromPlatform(
await _hostApi.consumeAsync(purchaseToken));
}