LinkFiveProvider class
LinkFive Provider
Initialize LinkFive with your Api Key
Please register on our website: https://www.linkfive.io to get an api key
- Inheritance
-
- Object
- ChangeNotifier
- LinkFiveProvider
Constructors
- LinkFiveProvider(String apiKey, {LinkFiveLogLevel logLevel = LinkFiveLogLevel.WARN})
- Initialize LinkFive with your Api Key
Properties
-
activePlanList
→ List<
LinkFivePlan> -
All verified receipts as List or emptyList
no setter
- activeProducts ↔ LinkFiveActiveProducts?
-
All verified receipt received by LinkFive
getter/setter pair
- callbackInterface → CallbackInterface
-
LinkFive as CallbackInterface for your Paywall
no setter
- hasActiveProduct → bool
-
conveniently check if the user has any activeProducts
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- linkFivePurchases → LinkFivePurchasesImpl
-
LinkFive client as factory
final
- products ↔ LinkFiveProducts?
-
LinkFive subscriptions that you can offer to your user
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
override
-
fetchProducts(
) → Future< LinkFiveProducts?> - Fetch all available Subscription for purchase for the user
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
purchase(
ProductDetails productDetail) → Future< bool> - Make a Purchase
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
restoreSubscriptions(
) → dynamic - Restore Subscriptions of the user
-
switchPlan(
LinkFivePlan oldPurchasePlan, LinkFiveProductDetails productDetails, {ProrationMode? prorationMode}) → dynamic - H andles the Switch Plan functionality.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited