onItemUpdated method

  1. @override
void onItemUpdated(
  1. Group oldItem,
  2. Group newItem,
  3. List<Group> updatedList
)
override

Called when an item is updated in the list. Override this method to add custom logic after item update.

oldItem - The item before update newItem - The item after update updatedList - The list after the update

Implementation

@override
void onItemUpdated(Group oldItem, Group newItem, List<Group> updatedList) {
  if (!isClosed) {
    add(_ListStateChanged(groups: updatedList, isEmpty: false));
  }
}