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:

LinkFivePurchases.init(linkFiveApiKey)

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

LinkFivePurchases.fetchProducts()

Also Possible but not recommended:

LinkFivePurchases.init(linkFiveApiKey) 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);
}