init static method

Future<LinkFiveActiveProducts> init(
  1. String apiKey, {
  2. LinkFiveLogLevel logLevel = LinkFiveLogLevel.WARN,
})

Initialize LinkFive with your Api Key

Please register on our website: https://www.linkfive.io to get an api key

Possible usage:

await LinkFivePurchases.init(linkFiveApiKey)

and then later while or before you show your paywall ui:

await LinkFivePurchases.fetchProducts()

It's not recommended to do:

await LinkFivePurchases.init(linkFiveApiKey) await LinkFivePurchases.fetchProducts());

LinkFiveLogLevel to see or hide internal logging

Implementation

static Future<LinkFiveActiveProducts> init(String apiKey, {LinkFiveLogLevel logLevel = LinkFiveLogLevel.WARN}) {
  return LinkFivePurchasesImpl().init(apiKey, logLevel: logLevel, env: LinkFiveEnvironment.PRODUCTION);
}