subscriptionHandlers property

SubscriptionHandlers get subscriptionHandlers

Implementation

gentype.SubscriptionHandlers get subscriptionHandlers =>
    gentype.SubscriptionHandlers(
      promotedProductIOS: () async {
        final value = await purchasePromoted.firstWhere(
          (element) => element != null,
        );
        return value ?? '';
      },
      purchaseError: () async =>
          await purchaseErrorListener.first as gentype.PurchaseError,
      purchaseUpdated: () async => await purchaseUpdatedListener.first,
      userChoiceBillingAndroid: () async =>
          await _userChoiceBillingAndroidListener.stream.first,
    );