DalkSdk class

Dalk Sdk class that allow you to manage a chat for a user.


DalkSdk(String projectId, User me, { String signature })
Creates a new DalkSdk that allow you to manage a chat for a user. [...]


me User
User representing the current connected chat user
newConversation → Stream<Conversation>
Stream of new Conversation to be alerted when a new one is available
projectId → String
Project id on your Dalk account, check it to get it
signature → String
Signature to use to secure the connection If you have enable this feature on your dashboard it is mandatory to provide a signature to allow connection to the chat {@tool snippet} [...]
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


connect() → Future<void>
Connect the SDK to the server to start receiving realtime event and declare the current user (me) online
createGroupConversation(List<User> users, { String conversationId String subject String avatar }) → Future<Conversation>
Create a group conversation between me and the given users (User) [...]
createOneToOneConversation(User user, { String conversationId }) → Future<Conversation>
Create a one to one conversation between me and the given User [...]
disconnect() → Future<void>
Disconnect from the server, you'll not receive anymore events and will not be able to retrieve/send chat objects
getConversation(String conversationId) → Future<Conversation>
Retrieves a single Conversation by his id [...]
getConversations() → Future<List<Conversation>>
Returns the list of Conversation of the current user (me) [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() → String
Returns a string representation of this object.


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