getEligibleWinBackOffersForPackage static method

Future<List<WinBackOffer>> getEligibleWinBackOffersForPackage(
  1. Package package
)

iOS only, requires iOS 18.0 or greater with StoreKit 2.

Use this function to retrieve the eligible WinBackOffers that a subscriber is eligible for for a given Package.

package The Package the user intends to purchase.

Implementation

static Future<List<WinBackOffer>> getEligibleWinBackOffersForPackage(
  Package package,
) async =>
    getEligibleWinBackOffersForProduct(package.storeProduct);