RuutRepositoryImpl class

Inheritance

Constructors

RuutRepositoryImpl.new({required RuutClientService clientService, required LocalStorage localStorage, required RuutCallbacks streamCallbacks})

Properties

callbacks RuutCallbacks
getter/setter pairinherited
clientService RuutClientService
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 ruut 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(RuutUser? user) Future<void>
Initializes ruut client repository
override
listenForEvents() → void
Connects to ruut websocket and starts listening for updates
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendAction(RuutActionType action) → void
Send actions like user started typing
override
sendAttachment(File file) Future<void>
override
sendMessage(RuutNewMessageRequest request) Future<void>
Sends message to ruut inbox
override
toString() String
A string representation of this object.
inherited

Operators

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