fixed iap repo

This commit is contained in:
Vadim 2023-09-02 12:25:51 +02:00
parent a0d09abcc1
commit 0b9b72011e
2 changed files with 11 additions and 3 deletions

View file

@ -1,5 +1,13 @@
enum IAPProductStatus {
purchasable,
pending,
purchased,
}
enum IAPProductType { paidFeatures }
class IAPProduct {
IAPProduct();
abstract class IAPProduct {
const IAPProduct._();
IAPProductStatus get status => IAPProductStatus.purchasable;
}

View file

@ -35,7 +35,7 @@ class IAPProducts extends InheritedModel<IAPProductType> {
super.key,
});
static IAPProduct? of(BuildContext context, IAPProductType type) => null;
static IAPProduct? productOf(BuildContext context, IAPProductType type) => null;
static bool isPurchased(BuildContext context, IAPProductType type) => false;