pushDelta method
Push delta (partial update) to backend.
Only sends changed fields instead of the entire document, reducing bandwidth by up to 98%.
Parameters:
collection: Collection namerecordId: Document IDdelta: Only the fields that changedbaseVersion: Version before this updatetimestamp: When the update occurred
If the backend doesn't support delta sync, this should fall back to a regular push() with the full document.
Implementation
Future<void> pushDelta({
required String collection,
required String recordId,
required Map<String, dynamic> delta,
required int baseVersion,
required DateTime timestamp,
}) async {
// Default implementation: fall back to regular push
// Backends that support delta sync should override this method
throw UnimplementedError(
'Delta sync not implemented for this backend adapter. '
'Override pushDelta() or use regular push().',
);
}