currentEntitlements static method

Future<List<SK2Transaction>> currentEntitlements()

A wrapper around Transaction.currentEntitlements https://developer.apple.com/documentation/storekit/transaction/currententitlements A sequence that emits the latest transaction for each product the customer is currently entitled to.

Implementation

static Future<List<SK2Transaction>> currentEntitlements() async {
  final List<SK2TransactionMessage> msgs = await hostApi2.currentEntitlements();
  final List<SK2Transaction> transactions = msgs
      .map((SK2TransactionMessage e) => e.convertFromPigeon())
      .toList();
  return transactions;
}