getConversation method
通过id
获取会话
Implementation
Future<EMConversation> getConversation({
final String id,
final EMConversationType type,
final bool createIfNotExists}) async {
Map<String, dynamic> result = await _emChatManagerChannel.invokeMethod(
EMSDKMethod.getConversation,
{"id": id, "type": toEMConversationType(type), "createIfNotExists": createIfNotExists});
if (result['success']) {
return EMConversation.from(result['conversation']);
} else {
return null;
}
}