clearAllSecureData static method

Future<void> clearAllSecureData()

✅ Clear all stored keys in SharedPreferences

Implementation

static Future<void> clearAllSecureData() async {
  try {
    if (_prefs == null) throw Exception('SharedPreferences not initialized');
    for (final key in KeyConfig.allKeys) {
      await _prefs!.remove(key);
    }
  } catch (e) {
    throw Exception('Failed to clear all data: $e');
  }
}