SyncBackend class abstract
Abstract interface for sync backends. Implement this to connect Rift to any backend (Supabase, Firebase, REST, WebSocket).
Constructors
Properties
-
events
→ Stream<
SyncEvent> -
Stream of sync events (real-time updates).
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → SyncStatus
-
Current connection status.
no setter
Methods
-
connect(
SyncConfig config) → Future< void> -
Connect to the sync backend with the given
config. -
disconnect(
) → Future< void> - Disconnect from the sync backend.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pullChanges(
SyncCursor cursor) → Future< List< SyncChange> > - Pull remote changes from the backend since the given cursor.
-
pushChanges(
List< SyncChange> changes) → Future<SyncResult> - Push local changes to the backend.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited