offerToken property

String? get offerToken

The offerToken of the subscription this GooglePlayProductDetails object was contructed for, or null if it was not a subscription.

Implementation

String? get offerToken =>
    subscriptionIndex != null &&
        productDetails.subscriptionOfferDetails != null
    ? productDetails
          .subscriptionOfferDetails![subscriptionIndex!]
          .offerIdToken
    : null;