getProducts static method
Future<List<Product> >
getProducts(
- List<
String> productIdentifiers, { - PurchaseType type = rc.PurchaseType.subs,
Fetch the product info. Returns a list of products or throws an error if the products are not properly configured in RevenueCat or if there is another error while retrieving them.
productIdentifiers
Array of product identifiers
type
If the products are Android INAPPs, this needs to be
PurchaseType.INAPP otherwise the products won't be found.
PurchaseType.Subs by default. This parameter only has effect in Android.
Implementation
static Future<List<rc.Product>> getProducts(List<String> productIdentifiers,
{rc.PurchaseType type = rc.PurchaseType.subs}) {
return rc.Purchases.getProducts(productIdentifiers, type: type);
}