resetAll static method
void
resetAll()
Disposes and clears every registered store. Mainly useful in test
tearDown to stop state leaking between test cases.
Note: does NOT clear changeLog — call clearChangeLog explicitly if you also want to reset the mutation history.
Implementation
static void resetAll() {
_globalBatchDepth = 0;
_globalPendingStores.clear();
_globalWatchdogTimer?.cancel();
_globalWatchdogTimer = null;
_undoStack.clear();
_redoStack.clear();
_isRestoring = false;
final stores = List<OrbitStore>.of(_stores.values);
_stores.clear();
for (final store in stores) {
store.dispose();
}
}