I have a question in my flutter dart script, this my script: List<ReplyTile> replytile = new List<ReplyTile>();replytile.add( new ReplyTile( member_photo: "photo", member_id: "001", date: "01-01-2018", member_name: "Denis", id: "001", text: "hallo.." ));My question is: how to remove items on List<ReplyTile> with id = 001.. ?Thanks in advance 解决方案 removeWhere allows to do that:replytile.removeWhere((item) => item.id == '001')See also List Dartdoc 这篇关于Flutter移除清单项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
09-23 09:34