addMultiDeviceEventHandler method Null safety

void addMultiDeviceEventHandler(
  1. String identifier,
  2. ChatMultiDeviceEventHandler handler
)

Adds the multi-device event handler. After calling this method, you can handle for new room event when they arrive.

Param identifier The custom handler identifier, is used to find the corresponding handler.

Param handler The handler multi-device event. See ChatMultiDeviceEventHandler.

Implementation

void addMultiDeviceEventHandler(
  String identifier,
  ChatMultiDeviceEventHandler handler,
) {
  _multiDeviceEventHandler[identifier] = handler;
}