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_idcurrently stored for the specifiedchannel. -
loadChannelMessages(
String channel) → Future< List< Broadcast> > -
Loads all locally cached
Broadcastmessages for a specificchannel. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onBroadcastChanged(
Broadcast broadcast) → void -
Invoked automatically when BroadcastStatus of the
broadcastchanges. -
toString(
) → String -
A string representation of this object.
inherited
-
upsertBroadcast(
Broadcast broadcast) → void -
Inserts or updates a single
Broadcastevent in the local storage. -
upsertBroadcasts(
List< Broadcast> broadcasts) → Future<void> -
Inserts or updates a batch of
Broadcastevents 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