atomicReplace method
Atomically swaps the container's contents with a fresh backend built by
buildTemp.
Implementations should build the temp target cleanly, invoke flush(),
atomically replace the live backing store (e.g. rename), and rebind
subsequent operations to the new store.
Implementation
@override
Future<void> atomicReplace(
Future<void> Function(StorageBackend temp) buildTemp,
) => atomicReplaceWithHooks(buildTemp);