ChatThreadEventHandler constructor Null safety

ChatThreadEventHandler(
  1. {void onChatThreadCreate(
    1. ChatThreadEvent event
    )?,
  2. void onChatThreadDestroy(
    1. ChatThreadEvent event
    )?,
  3. void onChatThreadUpdate(
    1. ChatThreadEvent event
    )?,
  4. void onUserKickOutOfChatThread(
    1. ChatThreadEvent event
    )?}
)

The message thread listener callback

Param onChatThreadCreate A message thread is created callback.

Param onChatThreadDestroy A message thread is destroyed callback.

Param onChatThreadUpdate A message thread is updated callback.

Param onUserKickOutOfChatThread Current user is removed from the message thread by the group owner or a group admin to which the message thread belongs callback.

Implementation

ChatThreadEventHandler({
  this.onChatThreadCreate,
  this.onChatThreadDestroy,
  this.onChatThreadUpdate,
  this.onUserKickOutOfChatThread,
});