getProductList method

Future<List> getProductList()

Fetch the product list from the API

Implementation

Future<List<dynamic>> getProductList() async {
  final response = await http.get(Uri.parse('$baseUrl/products'));
  return _handleResponse(response);
}