ChatService class

Chat

Properties

afterMessageSent ↔ (dynamic Function(ChatMessage)?)
getter/setter pair
beforeMessageSent ↔ (Future<Map<String, dynamic>> Function(Map<String, dynamic> message, ChatModel chatModel)?)
Do something before the message is sent.
getter/setter pair
customize ChatCustomize
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
joinsRef → DatabaseReference
로그인한 사용자의 채팅방 목록 reference 이다.
no setter
messageseRef → DatabaseReference
no setter
roomsRef → DatabaseReference
no setter
rtdb → FirebaseDatabase
Firebase Realtime Database Chat Functions
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createRoom({required String name, required bool isGroupChat, required bool isOpenGroupChat}) Future
init({ChatCustomize? customize, Future<Map<String, dynamic>> beforeMessageSent(Map<String, dynamic>, ChatModel)?, dynamic afterMessageSent(ChatMessage)?}) → dynamic
init
joinRef(String myUid, String roomId) → DatabaseReference
messageRef({required String roomId}) → DatabaseReference
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
roomRef(String roomId) → DatabaseReference
roomUserRef(String roomId, String uid) → DatabaseReference
roomUserRef is the reference to the users node under the group chat room. Ex) /chat-rooms/{roomId}/users/{my-uid}
showChatRoomCreate({required BuildContext context, bool authRequired = false}) Future<ChatRoom?>
showChatRoomScreen({required BuildContext context, String? uid, String? roomId, ChatRoom? room}) Future
채팅방 입장
showChatRoomSettings({required BuildContext context, required String roomId}) Future
showInviteScreen({required BuildContext context, required ChatRoom room}) Future
Display a dialog to invite a user to a chat room.
showMembersScreen({required BuildContext context, required ChatRoom room}) Future
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance ChatService
no setter