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