getPlatformProducts method

  1. @override
Future<List<ProductDetails>?> getPlatformProducts(
  1. LinkFiveResponseData linkFiveResponse
)
override

load the products from the native billing sdk

Implementation

@override
Future<List<ProductDetails>?> getPlatformProducts(LinkFiveResponseData linkFiveResponse) async {
  if (await _isStoreReachable) {
    return await _loadProducts(
      subscriptionList: linkFiveResponse.subscriptionList,
      oneTimePurchaseList: linkFiveResponse.oneTimePurchaseList,
    );
  }
  LinkFiveLogger.d("No Products to return Store is probably not reachable");
  return null;
}