ChunkSyncService class

Background service that syncs content chunks from Supabase to local storage.

When a topic is opened, this service downloads chunks and their embeddings from Supabase and stores them in the local vector store for offline access.

Constructors

ChunkSyncService(SupabaseDatasource _supabase, LocalVectorStore _localStore, LocalEmbeddingDatasource _localEmbedding)

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

isSynced(String topicId) bool
Whether a topic has been synced (either from cache or fresh download).
isSyncing(String topicId) bool
Whether a topic is currently being synced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
syncTopic(String topicId) Future<int>
Sync a topic's chunks to local storage.
toString() String
A string representation of this object.
inherited

Operators

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