ChatGroupEventHandler constructor Null safety

ChatGroupEventHandler(
  1. {void onAdminAddedFromGroup(
    1. String groupId,
    2. String admin
    )?,
  2. void onAdminRemovedFromGroup(
    1. String groupId,
    2. String admin
    )?,
  3. void onAllGroupMemberMuteStateChanged(
    1. String groupId,
    2. bool isAllMuted
    )?,
  4. void onAllowListAddedFromGroup(
    1. String groupId,
    2. List<String> members
    )?,
  5. void onAllowListRemovedFromGroup(
    1. String groupId,
    2. List<String> members
    )?,
  6. void onAnnouncementChangedFromGroup(
    1. String groupId,
    2. String announcement
    )?,
  7. void onAutoAcceptInvitationFromGroup(
    1. String groupId,
    2. String inviter,
    3. String? inviteMessage
    )?,
  8. void onGroupDestroyed(
    1. String groupId,
    2. String? groupName
    )?,
  9. void onInvitationAcceptedFromGroup(
    1. String groupId,
    2. String invitee,
    3. String? reason
    )?,
  10. void onInvitationDeclinedFromGroup(
    1. String groupId,
    2. String invitee,
    3. String? reason
    )?,
  11. void onInvitationReceivedFromGroup(
    1. String groupId,
    2. String? groupName,
    3. String inviter,
    4. String? reason
    )?,
  12. void onMemberExitedFromGroup(
    1. String groupId,
    2. String member
    )?,
  13. void onMemberJoinedFromGroup(
    1. String groupId,
    2. String member
    )?,
  14. void onMuteListAddedFromGroup(
    1. String groupId,
    2. List<String> mutes,
    3. int? muteExpire
    )?,
  15. void onMuteListRemovedFromGroup(
    1. String groupId,
    2. List<String> mutes
    )?,
  16. void onOwnerChangedFromGroup(
    1. String groupId,
    2. String newOwner,
    3. String oldOwner
    )?,
  17. void onRequestToJoinAcceptedFromGroup(
    1. String groupId,
    2. String? groupName,
    3. String accepter
    )?,
  18. void onRequestToJoinDeclinedFromGroup(
    1. String groupId,
    2. String? groupName,
    3. String decliner,
    4. String? reason
    )?,
  19. void onRequestToJoinReceivedFromGroup(
    1. String groupId,
    2. String? groupName,
    3. String applicant,
    4. String? reason
    )?,
  20. void onSharedFileAddedFromGroup(
    1. String groupId,
    2. ChatGroupSharedFile sharedFile
    )?,
  21. void onSharedFileDeletedFromGroup(
    1. String groupId,
    2. String fileId
    )?,
  22. void onUserRemovedFromGroup(
    1. String groupId,
    2. String? groupName
    )?,
  23. void onSpecificationDidUpdate(
    1. ChatGroup group
    )?,
  24. void onDisableChanged(
    1. String groupId,
    2. bool isDisable
    )?}
)

The group manager listener callback.

Param onAdminAddedFromGroup A member is set as an admin callback.

Param onAdminRemovedFromGroup A member's admin privileges are removed callback.

Param onAllGroupMemberMuteStateChanged All group members are muted or unmuted callback.

Param onAllowListAddedFromGroup Ane or more group members are muted callback.

Param onAllowListRemovedFromGroup Ane or more group members are unmuted callback.

Param onAnnouncementChangedFromGroup The announcement is updated callback.

Param onAutoAcceptInvitationFromGroup The group invitation is accepted automatically callback.

Param onGroupDestroyed A group is destroyed callback.

Param onInvitationAcceptedFromGroup A group invitation is accepted callback.

Param onInvitationDeclinedFromGroup A group invitation is declined callback.

Param onInvitationReceivedFromGroup The user receives a group invitation callback.

Param onMemberExitedFromGroup A member proactively leaves the group callback.

Param onMemberJoinedFromGroup A member joins a group callback.

Param onMuteListAddedFromGroup One or more group members are muted callback.

Param onMuteListRemovedFromGroup One or more group members are unmuted callback.

Param onOwnerChangedFromGroup The group ownership is transferred callback.

Param onRequestToJoinAcceptedFromGroup A group request is accepted callback.

Param onRequestToJoinDeclinedFromGroup A group request is declined callback.

Param onRequestToJoinReceivedFromGroup The group owner or administrator receives a group request from a user callback.

Param onSharedFileAddedFromGroup A shared file is added to a group callback.

Param onSharedFileDeletedFromGroup A shared file is removed from a group callback.

Param onUserRemovedFromGroup Current user is removed from the group by the group admin callback.

Param onSpecificationDidUpdate Occurs when the group detail information is updated.

Param onDisableChanged /// Occurs when the group is enabled or disabled.

Implementation

ChatGroupEventHandler({
  this.onAdminAddedFromGroup,
  this.onAdminRemovedFromGroup,
  this.onAllGroupMemberMuteStateChanged,
  this.onAllowListAddedFromGroup,
  this.onAllowListRemovedFromGroup,
  this.onAnnouncementChangedFromGroup,
  this.onAutoAcceptInvitationFromGroup,
  this.onGroupDestroyed,
  this.onInvitationAcceptedFromGroup,
  this.onInvitationDeclinedFromGroup,
  this.onInvitationReceivedFromGroup,
  this.onMemberExitedFromGroup,
  this.onMemberJoinedFromGroup,
  this.onMuteListAddedFromGroup,
  this.onMuteListRemovedFromGroup,
  this.onOwnerChangedFromGroup,
  this.onRequestToJoinAcceptedFromGroup,
  this.onRequestToJoinDeclinedFromGroup,
  this.onRequestToJoinReceivedFromGroup,
  this.onSharedFileAddedFromGroup,
  this.onSharedFileDeletedFromGroup,
  this.onUserRemovedFromGroup,
  this.onSpecificationDidUpdate,
  this.onDisableChanged,
});