Skip to content

Commit b26a480

Browse files
authored
Update main.dart
1 parent 2ed7952 commit b26a480

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example/lib/main.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ class _MyHomePageState extends State<MyHomePage> {
3131

3232
_incrementCounter() async {
3333
// CREATING AN INSTANCE FOR WOOSIGNAL
34-
WooSignal wooSignal = await WooSignal.instance.init(appKey: "your app key");
34+
await WooSignal.instance.init(appKey: "your app key");
3535

36-
List<Product> products = await wooSignal.getProducts();
36+
List<Product> products = await WooSignal.instance.getProducts();
3737
if (products.isNotEmpty) {
3838
_productName = products[0].name ?? "";
3939
}

0 commit comments

Comments
 (0)