linkfive_purchases_provider 3.0.1 linkfive_purchases_provider: ^3.0.1 copied to clipboard
linkfive_purchases wrapped in an easy to use Provider. Register the provider and use linkfive everywhere.
Register the Provider with our API key and you're all set to use it
MultiProvider(
providers: [
// ...
ChangeNotifierProvider(
create: (context) => LinkFiveProvider("API_KEY"),
lazy: false,
),
]
)
Whenever you want to offer your product, call fetchProducts()
to load the latest products.