ChatThreadManager constructor

ChatThreadManager()

Implementation

ChatThreadManager() {
  _channel.setMethodCallHandler((MethodCall call) async {
    Map? argMap = call.arguments;
    if (call.method == ChatMethodKeys.onChatThreadCreate) {
      _onChatThreadCreated(argMap);
    } else if (call.method == ChatMethodKeys.onChatThreadUpdate) {
      _onChatThreadUpdated(argMap);
    } else if (call.method == ChatMethodKeys.onChatThreadDestroy) {
      _onChatThreadDestroyed(argMap);
    } else if (call.method == ChatMethodKeys.onUserKickOutOfChatThread) {
      _onChatThreadUserRemoved(argMap);
    }
    return null;
  });
}