ChatOverviewService class abstract
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
deleteChat(
ChatModel chat) → Future< void> - Deletes the chat for this user and the other users in the chat.
-
getChatById(
String id) → Future< ChatModel> - Retrieves a chat based on the ID.
-
getChatByUser(
ChatUserModel user) → Future< ChatModel> - Retrieves a chat based on the user.
-
getChatsStream(
) → Stream< List< ChatModel> > - Retrieves a stream of chats. This stream is updated whenever a new chat is created.
-
getUnreadChatsCountStream(
) → Stream< int> - Retrieves the number of unread chats.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readChat(
ChatModel chat) → Future< void> - When a chat is read, this method is called.
-
storeChatIfNot(
ChatModel chat) → Future< ChatModel> - Creates the chat if it does not exist.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited