📜  在列表飞镖代码示例中查找和更新元素

📅  最后修改于: 2022-03-11 14:48:04.843000             🧑  作者: Mango

代码示例1
listMessage[listMessage.indexWhere((msg) => msg.id == newMessage.id)] = newMessage;