update method
Updates an existing synchronization operation in the queue.
This is useful for scenarios like incrementing a retry count on a failed operation. The underlying LocalAdapter.addPendingOperation is expected to handle replacement if an operation with the same ID already exists.
Implementation
Future<void> update(DatumSyncOperation<T> operation) async {
// This assumes addPendingOperation handles replacement if the op exists
await localAdapter.addPendingOperation(operation.userId, operation);
}