flutter_firebase_realtime_chat_core library

Classes

FirebaseRealtimeChatCore
Provides access to Firebase chat data. Singleton, use FirebaseRealtimeChatCore.instance to aceess methods.
FirebaseRealtimeChatCoreConfig
Class that represents the chat config. Can be used for setting custom names for rooms and users paths. Call FirebaseChatCore.instance.setConfig before doing anything else with FirebaseChatCore.instance if you want to change the default collection names. When using custom names don't forget to update your security rules and indexes.

Extensions

RoleToShortString on Role
RoomTypeToShortString on RoomType

Functions

fetchUser(DatabaseReference instance, String userId, String usersPathName, {String? role}) Future<Map<String, dynamic>>
processRoomData(Map<String, dynamic> roomData, User firebaseUser, DatabaseReference instance, String usersPathName) Future<Room>
processRoomsData(List<Map<String, dynamic>> roomsData, User firebaseUser, DatabaseReference instance, String usersPathName) Future<List<Room>>