getShoppingProduct static method

List<ShopProduct> getShoppingProduct()

Implementation

static List<ShopProduct> getShoppingProduct() {
  List<ShopProduct> items = [];
  for (int i = 0; i < shop_product_image.length; i++) {
    ShopProduct obj = new ShopProduct();
    obj.image = shop_product_image[i];
    obj.title = shop_product_title[i];
    obj.price = shop_product_price[i];
    items.add(obj);
  }
  items.shuffle();
  return items;
}