SubscriptionService class

Constructors

SubscriptionService.new()
factory
SubscriptionService.getInstance()
factory

Properties

clicked bool
getter/setter pair
currentPurchases List<PurchaseDetails>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
inAppPurchase InAppPurchase
final
loader bool
getter/setter pair
notFoundIds List<String>
getter/setter pair
purchaseDetail PurchaseDetails
getter/setter pair
purchaseDone bool?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subscription StreamSubscription<List<PurchaseDetails>>?
getter/setter pair

Methods

buyProduct(ProductDetails product) Future<void>
checkSubscription({required RequestType apiType, String? apiUrl}) Future<CheckSubscriptionData?>
completePendingIosTransactions() Future<void>
completePendingOrErrorPurchase(BuildContext context, String message, {PurchaseDetails? purchaseDetail}) Future<void>
dispose() → void
downgradeOrUpgrade({required BuildContext context, required ProductDetails newProduct, required List<PurchaseDetails> currentPurchases, required String oldProductId}) Future<void>
handlePurchaseError({required BuildContext context, required PurchaseDetails purchaseDetails}) Future<void>
init(List<String> productIds) Future<bool>
listenToPurchaseUpdates(dynamic onUpdate(List<PurchaseDetails>)) → void
loadProducts() Future<List<ProductDetails>?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
selectedAndPurchasedPlan(String? id, int index) Future<Map<String, dynamic>>
selectedPlan(String expiryDate, List<ProductDetails> products, int selectedItem, List<String> subscriptionProductIds, List<PurchaseDetails> pastPurchases) Future<ProductDetails>
toString() String
A string representation of this object.
inherited

Operators

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