ChatMultiDeviceEventHandler constructor Null safety

ChatMultiDeviceEventHandler(
  1. {void onContactEvent(
    1. ChatMultiDevicesEvent event,
    2. String userId,
    3. String? ext
    )?,
  2. void onGroupEvent(
    1. ChatMultiDevicesEvent event,
    2. String groupId,
    3. List<String>? userIds
    )?,
  3. void onChatThreadEvent(
    1. ChatMultiDevicesEvent event,
    2. String chatThreadId,
    3. List<String> userIds
    )?}
)

The multi-device event handler.

Param onContactEvent The multi-device event of contact.

Param onGroupEvent The multi-device event of group.

Param onChatThreadEvent The multi-device event of thread.

Implementation

ChatMultiDeviceEventHandler({
  this.onContactEvent,
  this.onGroupEvent,
  this.onChatThreadEvent,
});