PurchasesApi class abstract

Thin adapter over the Purchases static API so RevenueCatDatasource can be unit-tested without a platform channel. The default implementation forwards to the real SDK; tests inject a mock.

Constructors

PurchasesApi()

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

configure(PurchasesConfiguration config) Future<void>
getCustomerInfo() Future<CustomerInfo>
getOfferings() Future<Offerings>
logOut() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
purchase(PurchaseParams params) Future<PurchaseResult>
restorePurchases() Future<CustomerInfo>
setLogLevel(LogLevel level) Future<void>
toString() String
A string representation of this object.
inherited

Operators

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