flutter_firebase_chat_core
flutter_firebase_chat_core copied to clipboard
I wan't to create a room with a specific userID
trafficstars
Hello 👋 I'm new to flutter I want to create a room with a specific userID. can't find it in the documentation do you have any example or idea to do it ? thank you !
@letony77 I've got this code snippet from my project, it accepts custom user id as value to create room
Future<types.Room> createroom( String value, String companyName, String companyImage) async { return await FirebaseChatCore.instance.createRoom(types.User(id: value), metadata: {"name": companyName, "image": companyImage}); }