setAdapter method
Implementation
void setAdapter(ArgosStorageAdapter? adapter) {
_adapter = adapter;
// Rebind to a new backing store and discard transient state: the cache may
// describe a different store, and any queued ops belong to the old one.
// (In production this runs once at init, before any writes.)
_cache = null;
_dirty = false;
_flushTimer?.cancel();
_flushTimer = null;
_opChain = Future.value();
}