How do you change the value of a List[index].fieldname flutter?

Viewed 8063

How do you change the value of a List[index].fieldname flutter?

1 Answers
class Person {
  String firstName;
  String lastName;
}

//assuming contacts is a List<Person>

contacts[index].firstName = 'Tony';
Related