infinite_scroll_pagination
infinite_scroll_pagination copied to clipboard
I delete an element from the feed stream
I want to delete a certain element from the infinite feed stream and refresh the display normally. Now the situation is that the last one disappears after deletion, scroll for a while, and the display is normal again. How to solve it , Here's how
bool removeItem(T item) { bool result = dataList.remove(item); if (result == false) return false; pagingController.itemList = dataList; notifyData(); return true; }