Flutter map遍历获取List的索引值

废话不多说 直接上代码 官方的写法

list tabs=[{},{},{}];

tabs.asMap().keys.map((item)=>Container(
       child:Text("${'索引值'+item}"),
)).toList()

要获取某一项只能tabs[索引] 来获取 

猜你喜欢

转载自www.cnblogs.com/tianmiaogongzuoshi/p/12360091.html