DalkSdk class

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

Constructors

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

Properties

me User
User representing the current connected chat user
final
newConversation → Stream<Conversation>
Stream of new Conversation to be alerted when a new one is available
read-only
projectId → String
Project id on your Dalk account, check it to get it
final
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} [...]
final
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

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. [...]
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

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