We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ed7952 commit b26a480Copy full SHA for b26a480
example/lib/main.dart
@@ -31,9 +31,9 @@ class _MyHomePageState extends State<MyHomePage> {
31
32
_incrementCounter() async {
33
// CREATING AN INSTANCE FOR WOOSIGNAL
34
- WooSignal wooSignal = await WooSignal.instance.init(appKey: "your app key");
+ await WooSignal.instance.init(appKey: "your app key");
35
36
- List<Product> products = await wooSignal.getProducts();
+ List<Product> products = await WooSignal.instance.getProducts();
37
if (products.isNotEmpty) {
38
_productName = products[0].name ?? "";
39
}
0 commit comments