createConversation method
Future
createConversation({
- required String conversationId,
- dynamic type = ConversationType.Chat,
Implementation
Future<Conversation> createConversation({
required String conversationId,
ConversationType type = ConversationType.Chat,
}) {
return checkResult(ChatSDKEvent.createConversation, () async {
Conversation? conv = await Client.getInstance.chatManager
.getConversation(conversationId, type: type, createIfNeed: true);
return conv!;
});
}