LinkFiveProvider constructor

LinkFiveProvider(
  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

Implementation

LinkFiveProvider(String apiKey,
    {LinkFiveLogLevel logLevel = LinkFiveLogLevel.WARN}) {
  linkFivePurchases.init(apiKey, logLevel: logLevel);
  _streams.add(linkFivePurchases.products.listen(_productsUpdate));
  _streams
      .add(linkFivePurchases.activeProducts.listen(_activeProductsUpdate));
}