LinkFivePurchasesImpl.testing constructor

  1. @visibleForTesting
LinkFivePurchasesImpl.testing({
  1. required InAppPurchase inAppPurchaseInstance,
  2. LinkFiveClientInterface? linkFiveClient,
  3. LinkFiveBillingClientInterface? linkFiveBillingClient,
})

TEST CONSTRUCTOR. Please do not use.

Implementation

@visibleForTesting
LinkFivePurchasesImpl.testing(
    {required this.inAppPurchaseInstance,
    LinkFiveClientInterface? linkFiveClient,
    LinkFiveBillingClientInterface? linkFiveBillingClient}) {
  // switching linkFiveClient if exists
  if (linkFiveClient != null) {
    _client = linkFiveClient;
  }
  if (linkFiveBillingClient != null) {
    _billingClient = linkFiveBillingClient;
  }
}