SolevatoRepositoryImpl class

Inheritance

Constructors

SolevatoRepositoryImpl.new({required SolevatoClientService clientService, required LocalStorage localStorage, required SolevatoCallbacks streamCallbacks, required String inboxIdentifier})

Properties

callbacks SolevatoCallbacks
getter/setter pairinherited
clientService SolevatoClientService
finalinherited
hashCode int
The hash code for this object.
no setterinherited
inboxIdentifier String
getter/setter pairinherited
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 solevato 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(SolevatoUser? user) Future<void>
Initializes solevato client repository
override
listenForEvents() → void
Connects to solevato websocket and starts listening for updates
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendAction(SolevatoActionType action) → void
Send actions like user started typing
override
sendMessage(SolevatoNewMessageRequest request) Future<void>
Sends message to solevato inbox
override
toString() String
A string representation of this object.
inherited

Operators

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