chatTypeFromInt static method

EMMessageChatType chatTypeFromInt(
  1. int? type
)

Implementation

static EMMessageChatType chatTypeFromInt(int? type) {
  if (type == 2) {
    return EMMessageChatType.ChatRoom;
  } else if (type == 1) {
    return EMMessageChatType.GroupChat;
  } else {
    return EMMessageChatType.Chat;
  }
}