ChatViewModel constructor
ChatViewModel(})
Implementation
ChatViewModel(this.conversationId, this.conversationType,
{this.showReadAck = true,
NIMMessage? anchorMessage,
this.findAnchorDate}) {
_setNIMMessageListener();
initData(
anchorMessage: anchorMessage,
);
//初始化语音播放器
ChatAudioPlayer.instance.initAudioPlayer();
showWarningTips = ChatKitClient.instance.showWarningTyps;
}