sendMessage method
Implementation
Future<void> sendMessage(ChatMessage message, String chatRoomId) async {
DocumentReference roomRef =
_firestore.collection('ChatRooms').doc(chatRoomId);
DocumentReference messageRef = roomRef.collection('Messages').doc();
await messageRef.set(message.toJson());
notifyListeners();
}