SyncBackendAdapter class abstract

Abstract interface for backend sync adapters This allows SyncLayer to work with different backends (REST, Firebase, Supabase, GraphQL)

Implementers

Constructors

SyncBackendAdapter()

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

delete({required String collection, required String recordId}) → Future<void>
Delete data on backend
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pull({required String collection, DateTime? since, int? limit, int? offset, SyncFilter? filter}) → Future<List<SyncRecord>>
Pull data from backend with optional pagination and filtering
push({required String collection, required String recordId, required Map<String, dynamic> data, required DateTime timestamp}) → Future<void>
Push data to backend
pushDelta({required String collection, required String recordId, required Map<String, dynamic> delta, required int baseVersion, required DateTime timestamp}) → Future<void>
Push delta (partial update) to backend.
toString() → String
A string representation of this object.
inherited
updateAuthToken(String token) → void
Update authentication token

Operators

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