Skip to content

Commit 0564b35

Browse files
committed
Product List API Added
1 parent 865167c commit 0564b35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/woosignal_shopify.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,8 @@ class WooSignal {
244244
jsonResponse: (json) => Product.fromJson(json),
245245
);
246246
}
247-
248-
Future<ProductsListModel> fetchDataFromAPI() async {
247+
//fetch list of products by using url and then use ProductsListModel
248+
Future<ProductsListModel> fetchProductsList() async {
249249
final url = 'https://api.woosignal.com/shopify/v1/products';
250250

251251
try {

0 commit comments

Comments
 (0)