createChatRoom method

Future<ChatRoom> createChatRoom({
  1. String? name,
  2. Map<String, dynamic>? attributes,
})

To create a new ChatRoom.

name is the Conversation.name. attributes is the Conversation.attributes.

Returns an instance of ChatRoom.

Implementation

Future<ChatRoom> createChatRoom({
  String? name,
  Map<String, dynamic>? attributes,
}) async {
  return await _createConversation(
    type: _ConversationType.transient,
    name: name,
    attributes: attributes,
  );
}