putAll method

Future<void> putAll(
  1. Map<String, SyncMetadata> entries
)

Insert or replace multiple metadata entries in a single box write.

Batches the status transitions of a sync pass (e.g. marking a whole batch syncing, then writing its synced results) into one Box.putAll instead of one awaited put per record (issue #2028).

Implementation

Future<void> putAll(Map<String, SyncMetadata> entries) async {
  await _box.putAll(entries);
}