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);