title: This expression has a type of 'void' so its value can't be used in popup menu item
body: <p>when am getting an error in list parameter that <strong>This expression has a type of 'void' so its value can't be used.</strong>  i don't know what i have to do to fix this error . please help.</p>
  <pre><code>PopupMenuItem(
                                               onTap: () {
                                                 var list = inventoryController
                                                .myInventoryList1
                                                .removeWhere((i) =&gt;
                                                 i.description ==inventoryController.myInventoryList1[index].description);
                                                 inventoryController.deleteInventory(list, context);
  
                                               },
  </code></pre>