replaceAll method
Replaces all data in the box with the given entries.
This operation clears the box and its index, then writes and re-indexes
the provided entries in a single transaction. It is much faster than
calling clear followed by putAll, because it avoids any get calls
and minimizes index operations.
⚠️ Note: This is a destructive operation — all existing data will be lost.
Implementation
@override
Future<void> replaceAll(Map<K, T> entries) =>
_lock.operation("REPLACE_ALL").run(() => _replaceAll(entries));