Closed
Description
Hi everyone.
In my app, i have added the method "Purchases.getProducts(...)" but this throws a TypeError Exception.
VScode shows me that the corrupted file is "purchases_flutter.dart".
Today I upgraded the package to 3.0.0; before today, i used 2.0.2
My code:
Future<List<Product>> caricaDonazioni() async {
List<Product> prodotti = await Purchases.getProducts([
'XXXXX',
'XXXXX',
'XXXXX',
'XXXXX',
'XXXXX',
], type: PurchaseType.inapp);
prodotti.sort((prod1, prod2) => prod1.price.compareTo(prod2.price));
return prodotti;
}
Activity