Flutter 数组转Key value
2020-12-03 本文已影响0人
赵哥窟
数组对象转Key Value 方便查找
Map<String,Object> map = Map.fromIterable(list,key: (it) =>it.id,value: (it) =>it);
数组对象转Key Value 方便查找
Map<String,Object> map = Map.fromIterable(list,key: (it) =>it.id,value: (it) =>it);