paywallProducts method
- required String paywallId,
override
All products from specific paywall. If not found throws PaywallFindFailedException
Implementation
@override
List<ProductModel> paywallProducts({required String paywallId}) {
final products = fetchedPaywalls[paywallId]?.products;
if (products == null || products.isEmpty) {
throw const PaywallFindFailedException();
}
return products;
}