resetCrashCount method
Resets the crash counter. Call after a successful app launch (i.e. the user interacted without crashing).
Implementation
Future<void> resetCrashCount() async {
try {
final prefs = await SharedPreferences.getInstance();
await prefs.remove(_crashCountKey);
await prefs.remove(_lastLaunchKey);
} catch (_) {
// Silently fail — this is non-critical
}
}