SimpleBilling class

Constructors

SimpleBilling()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

allProducts List<IAPItem>
no setter
allSubscriptions List<IAPItem>
no setter
purchases List<PurchasedItem>
no setter

Static Methods

buyProduct(String productId, {required BuildContext context}) Future
buyProductWithOfferIOS({required String subscriptionId, required String forUser, required Map<String, dynamic> withOffer, required BuildContext context}) Future
buySubscription(String subscriptionId, {required BuildContext context, String? oldSkuAndroid}) Future
Request a subscription on Android or iOS. Result will be received in purchaseUpdated listener or purchaseError listener.
checkIfEverythingIsPurchased(List<String> productId) bool
checkIfHaveAnyPurchase(List<String> productId) bool
checkPurchase(String productId) bool
dispose() Future<void>
getDiscountIOS({required String productId, required String discountId}) → DiscountIOS?
getIAPItem(String productId) → IAPItem?
getPrice(String productId, {bool withIntroductoryPrice = false}) String?
init({required List<String> productsId, required List<String> consumablesId, required List<String> subscriptionsId, String? purchaseTokenAndroid, Widget popUpWidget = const _DefaultPopUpWidget(), void onPurchaseUpdated(PurchasedItem purchasedItem)?}) Future
restorePurchases({required BuildContext context}) Future<void>