如何更改List [index] .fieldname flutter的值?

时间:2018-09-18 18:25:16

标签: dart flutter

如何更改List [index] .fieldname flutter的值?

1 个答案:

答案 0 :(得分:4)

class Person {
  String firstName;
  String lastName;
}

//assuming contacts is a List<Person>

contacts[index].firstName = 'Tony';
相关问题