Conversation class

Conversation object representation abstract

Constructors

Conversation()

Properties

admins → List<User>
list of User with admin role on this conversation
read-only
avatar → String
avatar of this conversation as an URL Can be customized by setOptions for group conversation
read-only
currentUser User
current User
read-only
id → String
identifier of the conversation
read-only
isGroup → bool
Returns true if this conversation has been created as a group conversation, false otherwise
read-only
isOneToOne → bool
Returns true if this conversation has been created as a one to one conversation, false otherwise
read-only
messages → List<Message>
list of Message of this conversation
read-only
onMessagesEvent → Stream<Message>
Returns a Stream of Message to get realtime events about messages of this conversation [...]
read-only
partner User
Returns the User who participate to this conversation with currentUser [...]
read-only
partners → List<User>
Returns a list of User who participate to this conversation with currentUser
read-only
subject → String
subject of this conversation Can be customized by setOptions for group conversation
read-only
users → List<User>
list of User in this conversation
read-only
hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

loadMessages() → Future<void>
This method let you load or refresh the list of Message of the conversation It will update messages [...]
sendMessage({String message, Map<String, dynamic> metadata }) → Future<void>
This method let you send a message to the current conversation It will trigger some events in onMessagesEvent [...]
setMessageAsSeen(String messageId) → Future<void>
This method let you notify the server that the message as been seen by the user [...]
setOptions({String subject String avatar }) → Future<void>
This method let you specify custom subject and avatar of the conversation It will update subject and avatar if successful [...]
updateMessage(String id, { String message, Map<String, dynamic> metadata }) → Future<void>
This method let you update a sent message on the current conversation It will trigger some events in onMessagesEvent [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited