RuutRepository class abstract
Handles interactions between ruut client api serviceclientService and localStorage if persistence is enabled.
Results from repository operations are passed through callbacks to be handled appropriately
- Implementers
Constructors
- RuutRepository(RuutClientService clientService, LocalStorage localStorage, RuutCallbacks callbacks)
Properties
- callbacks ↔ RuutCallbacks
-
getter/setter pair
- clientService → RuutClientService
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- localStorage → LocalStorage
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
) → Future< void> -
dispose(
) → void -
getMessages(
) → Future< void> -
getPersistedMessages(
) → void -
initialize(
RuutUser? user) → Future< void> -
listenForEvents(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendAction(
RuutActionType action) → void -
sendMessage(
RuutNewMessageRequest request) → Future< void> -
sendMessageImage(
File file) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited