Check out example codes for "modify item in list dart". It will help you in understanding the concepts better.

Code Example 1

int index = _items.indexOf(_user);
_items[index].status = 'Pending';

Learn ReactJs, React Native from akashmittal.com