onChanged property

(void Function(Map<int, ZegoUIKitUser> takenSeats, List<int> untakenSeats)?) onChanged
getter/setter pair

A callback function that is called when someone gets on/off/switches seat

The takenSeats parameter is a map that maps the index of each taken seat to the user who is currently sitting in that seat. The untakenSeats parameter is a list of the indexes of all untaken seats.

Implementation

void Function(
  Map<int, ZegoUIKitUser> takenSeats,
  List<int> untakenSeats,
)? onChanged;