resetForTests method
Reset all in-memory and persisted state. Test-only helper — calling this in production will wipe the user's real ledger.
Implementation
@visibleForTesting
Future<void> resetForTests() async {
_seen.clear();
_asked.clear();
_counters.clear();
for (final n in _seenNotifiers.values) {
n.value = false;
}
final prefs = await SharedPreferences.getInstance();
await prefs.remove(_storageKey);
_initialized = false;
}