addToSyncQueueBatch method

Future<void> addToSyncQueueBatch(
  1. List<SyncOperation> operations
)

Add multiple operations to sync queue in a single transaction

Implementation

Future<void> addToSyncQueueBatch(List<SyncOperation> operations) async {
  _ensureInitialized();

  await _isar.writeTxn(() async {
    await _isar.syncOperations.putAll(operations);
  });
}