createConversation method
Future<Conversation>
createConversation({
- required String conversationId,
- ConversationType 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!;
});
}