'Flutter Infinite scroll pagination not refreshing after an item list is removed
After removing an item from a pagination, I'm getting an Ranger error (index) I want to update my paginated list as soon as an item is removed or even added, this is the code I'm using, how can I remove the item and update it without any issue.
PagingController<int, Content>? paginationCtrl;
paginationCtrl!.itemList!
.removeWhere((element) => element.id == ID);
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|