products top-level property

List<Product> products
getter/setter pair

Implementation

List<Product> products = [
  Product(
    productName: 'This is product 1 : shippable',
    //  image: Uint8List.fromList('R0lGODlhAQABAAAAACwAAAAAAQABAAA='.codeUnits),
    price: Decimal.parse('23.99'),
    listPrice: Decimal.parse('27.99'),
    categories: [categories[0]],
    productTypeId: productTypes[0], // must be zero: shippable good
    description: 'This is a dummy description of first product',
    useWarehouse: true,
    assetClassId: "AsClsInventoryFin",
  ),
  Product(
    productName: 'This is product 2 : shippable',
    //  image: Uint8List.fromList('R0lGODlhAQABAAAAACwAAAAAAQABAAA='.codeUnits),
    price: Decimal.parse('73.99'),
    listPrice: Decimal.parse('73.99'),
    categories: [categories[0], categories[1]],
    productTypeId: productTypes[0], // must be zero: shippable good
    description: 'This is a dummy description of second product',
    useWarehouse: true,
    assetClassId: "AsClsInventoryFin",
  ),
  Product(
    productName: 'This is product 3 : rental',
    //  image: Uint8List.fromList('R0lGODlhAQABAAAAACwAAAAAAQABAAA='.codeUnits),
    price: Decimal.parse('93.99'),
    listPrice: Decimal.parse('99.99'),
    categories: [categories[0]], // only category 0 or rental test fails
    productTypeId: productTypes[2],
    description: 'This is a dummy description of third product',
    useWarehouse: false,
    assetClassId: "AsClsInventoryFin",
  ),
  Product(
    productName: 'This is product 4 : service',
    //  image: Uint8List.fromList('R0lGODlhAQABAAAAACwAAAAAAQABAAA='.codeUnits),
    price: Decimal.parse('22.44'),
    listPrice: Decimal.parse('25.44'),
    categories: [categories[1]],
    productTypeId: productTypes[1],
    description: 'This is the fourth product to be deleted',
    useWarehouse: false,
    assetClassId: "AsClsInventoryFin",
  ),
];