ChatwootRepositoryImpl class

Inheritance

Constructors

ChatwootRepositoryImpl({required ChatwootClientService clientService, required LocalStorage localStorage, required ChatwootCallbacks streamCallbacks})

Properties

callbacks ChatwootCallbacks
getter/setter pairinherited
clientService ChatwootClientService
finalinherited
hashCode int
The hash code for this object.
no setterinherited
localStorage LocalStorage
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() Future<void>
Clears all data related to current chatwoot client instance
override
dispose() → void
Cancels websocket stream subscriptions and disposes localStorage
override
getMessages() Future<void>
Fetches persisted messages.
override
getPersistedMessages() → void
Fetches persisted messages.
override
initialize(ChatwootUser? user) Future<void>
Initializes chatwoot client repository
override
listenForEvents() → void
Connects to chatwoot websocket and starts listening for updates
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendAction(ChatwootActionType action) → void
Send actions like user started typing
override
sendMessage(ChatwootNewMessageRequest request) Future<void>
Sends message to chatwoot inbox
override
toString() String
A string representation of this object.
inherited

Operators

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