How do you change the value of a List[index].fieldname
flutter?
You can use insert , but I solved by reversing the listView. @YeasinSheikh reversing the list only make it upside down.. I just want to push an item to index first and reduce others indexes by -1.
class Person {
String firstName;
String lastName;
}
//assuming contacts is a List<Person>
contacts[index].firstName = 'Tony';
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With