我有一个带有字段组的项目列表。组也是列表。我想显示按组分组的项目列表。该项目可以是两个或多个组的一部分。
\nList<Product> _items = [\n Product(\n id: \'1\',\n title: \'Apple and more more thing\', description: \'Some data to describe\',\n group: [\'Picnic\', \'New\'], price: 25, bonus: 1, quantity: 1.5, measure: \'\xd0\xba\xd0\xb3\', measureStep: 1.5,\n imageUrl: \'assets/fruits/orange.jpg\'),\n Product(\n id: \'2\',\n title: \'Apple and more more thing\', description: \'Some data to describe\',\n price: 24.50, bonus: 1, group: [\'Picnic\', \'New\'], quantity: 1.5, measure: \'\xd0\xba\xd0\xb3\', measureStep: 1.5,\n imageUrl: \'assets/fruits/orange.jpg\'),\n Product(\n id: \'3\',\n title: \'Apple and more more thing\', description: \'Some data to describe\',\n price: 5.00, …Run Code Online (Sandbox Code Playgroud)