joinChatRoom method Null safety
- String roomId
Joins the chat room.
To exit the chat room, call {@link #leaveChatRoom(String)}.
Param roomId The ID of the chat room to join.
Throws A description of the exception. See {@link ChatError}.
Implementation
Future<void> joinChatRoom(String roomId) async {
Map result = await _channel
.invokeMethod(ChatMethodKeys.joinChatRoom, {"roomId": roomId});
try {
ChatError.hasErrorFromResult(result);
} on ChatError catch (e) {
throw e;
}
}