Closed rehamalraee24 closed 1 year ago
I think you could update the list of the controller directly:
that's how i deleted an element in the list
final list = _pagingController.itemList ?? [];
list.removeWhere((friend) => friend.id == user.id);
setState(() {
_pagingController.itemList = list;
});
I want to refresh one widget item within the items list, I have to call .refresh() function to update the data, How can I update one widget only or update the list without scrolling to the top and showing the progress indicator?