onItemRemoved method
Called when an item is removed from the list. Override this method to add custom logic after item removal.
item - The item that was removed
updatedList - The list after the item was removed
Implementation
@override
void onItemRemoved(Group item, List<Group> updatedList) {
_mapNeedsRebuild = true;
if (!isClosed) {
add(_ListStateChanged(groups: updatedList, isEmpty: updatedList.isEmpty));
}
}