how to replace an element in a list in dart code example
Example: modify item in list dart
int index = _items.indexOf(_user);
_items[index].status = 'Pending';
int index = _items.indexOf(_user);
_items[index].status = 'Pending';