问题描述
我是初学者,我正在尝试在where
上实现List
来过滤数据,但我完全错了,请指导我正确的实现方式
实施
List filterproducts= productslist.where(widget.bomdatareceived[0]['purchase_items'][0]['product_code'].contains(widget.product_code));
错误
type 'bool' is not a subtype of type '(dynamic) => bool'
JSON数据
"purchase_items": [
{
"product_code": "61", "name": "SPINNING", "bom_catalog_item": "327", }, {
"product_code": "61", "bom_catalog_item": "390", }, {
"product_code": "65", "name": "DYING", "bom_catalog_item": "1056", }
]
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)