MessageRepository class

Constructors

MessageRepository(Database _db)

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → Future<void>
getChannelMaxFetchedSequenceId(String channel) → Future<int>
Returns the highest sequence_id currently stored for the specified channel.
loadChannelMessages(String channel) → Future<List<Broadcast>>
Loads all locally cached Broadcast messages for a specific channel.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onBroadcastChanged(Broadcast broadcast) → void
Invoked automatically when BroadcastStatus of the broadcast changes.
toString() → String
A string representation of this object.
inherited
upsertBroadcast(Broadcast broadcast) → void
Inserts or updates a single Broadcast event in the local storage.
upsertBroadcasts(List<Broadcast> broadcasts) → Future<void>
Inserts or updates a batch of Broadcast events within a single transaction.

Operators

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

Static Methods

getInstance({required String path, String name = _defaultDatabaseName}) → Future<MessageRepository>
Singleton-Getter