setTestData method

void setTestData(
  1. bool isOutlet
)

Implementation

void setTestData(bool isOutlet) {
  availableSingleList.addAll(
    [
      SingleScannedModel(iccid: "601033962822"),
      SingleScannedModel(iccid: "601033962823"),
      SingleScannedModel(iccid: "601033962824"),
      SingleScannedModel(iccid: "601033962825"),
      SingleScannedModel(iccid: "601033962826"),
      SingleScannedModel(iccid: "601033962827"),
      SingleScannedModel(iccid: "601033962828"),
      SingleScannedModel(iccid: "601033962829"),
      SingleScannedModel(iccid: "601033962830"),
      SingleScannedModel(iccid: "601033962831"),
      SingleScannedModel(iccid: "601033962832"),
      SingleScannedModel(iccid: "601033962833"),
      SingleScannedModel(iccid: "601033962834"),
      SingleScannedModel(iccid: "601033962835"),
      SingleScannedModel(iccid: "601033962836"),
      SingleScannedModel(iccid: "601033962837"),
      SingleScannedModel(iccid: "601033962838"),
      SingleScannedModel(iccid: "601033962839"),
      SingleScannedModel(iccid: "601033962840"),
      SingleScannedModel(iccid: "601033962841"),
      SingleScannedModel(iccid: "601033962842"),
      SingleScannedModel(iccid: "601033962843"),
      SingleScannedModel(iccid: "601033962844"),
      SingleScannedModel(iccid: "601033962845"),
      SingleScannedModel(iccid: "601033962846"),
      SingleScannedModel(iccid: "601033962847"),
      SingleScannedModel(iccid: "601033962848"),
      SingleScannedModel(iccid: "601033962849"),
      SingleScannedModel(iccid: "601033962850"),
      SingleScannedModel(iccid: "601033962851"),
      SingleScannedModel(iccid: "601033962852"),
      SingleScannedModel(iccid: "601033962853"),
      SingleScannedModel(iccid: "601033962854"),
      SingleScannedModel(iccid: "601033962855"),
      SingleScannedModel(iccid: "601033962856"),
      SingleScannedModel(iccid: "601033962857"),
      SingleScannedModel(iccid: "601033962858"),
      SingleScannedModel(iccid: "601033962859"),
      SingleScannedModel(iccid: "601033962860"),
      SingleScannedModel(iccid: "601033962861"),
      SingleScannedModel(iccid: "601033962862"),
      SingleScannedModel(iccid: "601033962863"),
      SingleScannedModel(iccid: "601033962864"),
    ],
  );

  availableProducts.addAll(
    [
      CollectStockCardModel(
        materialCode: "ACAD0000100A",
        productName: "Smartphone LTE Iphone12+ 128GB Rose Gold",
        productImage:
            "https://systematixmedia.com/storage/product_varient/large/MLK23HN-A_1_20210916014905.PNG",
        amount: 400,
        orderedQty: 10,
        deliveredQty: 0,
        scannedQty: 0,
        singleList: [
          SingleScannedModel(iccid: "601033962827"),
          SingleScannedModel(iccid: "601033962828"),
          SingleScannedModel(iccid: "601033962829"),
          SingleScannedModel(iccid: "601033962830"),
        ],
        rangeList: [
          RangeScannedModel(
            boxRangeId: "601033962",
            id: "601033962852 - 57",
            iccidList: [
              SingleScannedModel(iccid: "601033962852"),
              SingleScannedModel(iccid: "601033962853"),
              SingleScannedModel(iccid: "601033962854"),
              SingleScannedModel(iccid: "601033962855"),
              SingleScannedModel(iccid: "601033962856"),
              SingleScannedModel(iccid: "601033962857"),
            ],
          )
        ],
      ),
      CollectStockCardModel(
        materialCode: "ACAD0000100D",
        productName: "Smartphone LTE Iphone14 128GB Gold",
        singleList: [
          SingleScannedModel(iccid: "601033962822"),
          SingleScannedModel(iccid: "601033962823"),
          SingleScannedModel(iccid: "601033962824"),
          SingleScannedModel(iccid: "601033962825"),
          SingleScannedModel(iccid: "601033962826"),
        ],
      ),
      CollectStockCardModel(
        materialCode: "ACAD0000200A",
        productName: "Smartphone LTE Iphone13 128GB Silver",
        singleList: [
          SingleScannedModel(iccid: "601033962831"),
          SingleScannedModel(iccid: "601033962832"),
          SingleScannedModel(iccid: "601033962833"),
          SingleScannedModel(iccid: "601033962834"),
          SingleScannedModel(iccid: "601033962835"),
          SingleScannedModel(iccid: "601033962836"),
          SingleScannedModel(iccid: "601033962837"),
        ],
      ),
      CollectStockCardModel(
          materialCode: "ACAD0000300A",
          productName: "SIM,SBW PRE,BRUNO,SIM ONLY,P39,32K,DF",
          productImage:
              "https://img.freepik.com/premium-photo/blank-sim-card-mockup_797885-118.jpg",
          amount: 59,
          orderedQty: 8,
          deliveredQty: 0,
          scannedQty: 0,
          highlightMsg: "Recommended",
          isTradeMark: true,
          singleList: [
            SingleScannedModel(iccid: "601033962838"),
            SingleScannedModel(iccid: "601033962839"),
            SingleScannedModel(iccid: "601033962840"),
            SingleScannedModel(iccid: "601033962841"),
            SingleScannedModel(iccid: "601033962842"),
            SingleScannedModel(iccid: "601033962843"),
            SingleScannedModel(iccid: "601033962844"),
            SingleScannedModel(iccid: "601033962845"),
          ],
          rangeList: []),
      CollectStockCardModel(
        materialCode: "ACAD0000400A",
        productName: "SIM,BRO POST,PHW,HALF,64K,LTE",
        singleList: [
          SingleScannedModel(iccid: "601033962846"),
          SingleScannedModel(iccid: "601033962847"),
          SingleScannedModel(iccid: "601033962848"),
          SingleScannedModel(iccid: "601033962849"),
          SingleScannedModel(iccid: "601033962850"),
          SingleScannedModel(iccid: "601033962851"),
          SingleScannedModel(iccid: "601033962852"),
          SingleScannedModel(iccid: "601033962853"),
          SingleScannedModel(iccid: "601033962854"),
          SingleScannedModel(iccid: "601033962855"),
          SingleScannedModel(iccid: "601033962856"),
          SingleScannedModel(iccid: "601033962857"),
        ],
      ),
      CollectStockCardModel(
        materialCode: "ACAD0000500A",
        productName: "SIM,SBW PRE,BRUNO,250MB,DF",
        singleList: [
          SingleScannedModel(iccid: "601033962858"),
          SingleScannedModel(iccid: "601033962859"),
        ],
      ),
      CollectStockCardModel(
        materialCode: "ACAD0000600A",
        productName: "Physical Voucher-100K REG",
        productImage:
            "https://5.imimg.com/data5/NT/IN/VR/SELLER-8778229/gift-card.jpg",
        amount: 85,
        orderedQty: 2,
        scannedQty: 0,
        rangeList: [],
        singleList: [
          SingleScannedModel(iccid: "601033962860"),
          SingleScannedModel(iccid: "601033962861"),
        ],
      ),
      CollectStockCardModel(
        materialCode: "ACAD0000700A",
        productName: "Physical Voucher-SP40K-4in1",
        singleList: [
          SingleScannedModel(iccid: "601033962862"),
          SingleScannedModel(iccid: "601033962863"),
        ],
      ),
      CollectStockCardModel(
        materialCode: "ACAD0000800A",
        productName: "Physical Voucher-50K REG",
        singleList: [
          SingleScannedModel(iccid: "601033962864"),
        ],
      ),
    ],
  );
  if (!isOutlet) {
    collectStockList.clear();
    collectStockList.addAll(
      [
        CollectStockCardModel(
          materialCode: "ACAD0000100A",
          productName: "Smartphone LTE Iphone12+ 128GB Rose Gold",
          productImage:
              "https://systematixmedia.com/storage/product_varient/large/MLK23HN-A_1_20210916014905.PNG",
          amount: 400,
          orderedQty: 10,
          deliveredQty: 0,
          scannedQty: 0,
          singleList: [],
          rangeList: [],
        ),
        CollectStockCardModel(
          materialCode: "ACAD0000300A",
          productName: "SIM,SBW PRE,BRUNO,SIM ONLY,P39,32K,DF",
          productImage:
              "https://img.freepik.com/premium-photo/blank-sim-card-mockup_797885-118.jpg",
          amount: 59,
          orderedQty: 8,
          deliveredQty: 0,
          scannedQty: 0,
          highlightMsg: "Recommended",
          isTradeMark: true,
          singleList: [],
          rangeList: [],
        ),
        CollectStockCardModel(
          materialCode: "ACAD0000600A",
          productName: "Physical Voucher-100K REG",
          productImage:
              "https://5.imimg.com/data5/NT/IN/VR/SELLER-8778229/gift-card.jpg",
          amount: 85,
          orderedQty: 2,
          scannedQty: 0,
          singleList: [],
          rangeList: [],
        ),
      ],
    );
    searchedList.value = collectStockList;
  }
}