setChattingAccount static method

dynamic setChattingAccount(
  1. String account,
  2. NIMSessionType sessionType
)

设置当前聊天的账号

Implementation

static setChattingAccount(String account, NIMSessionType sessionType) {
  NimCore.instance.messageService
      .setChattingAccount(sessionId: account, sessionType: sessionType);
}