clearSecureData static method

Future<void> clearSecureData(
  1. String key
)

Implementation

static Future<void> clearSecureData(String key) async {
  try {
    if (_prefs == null) throw Exception('SharedPreferences not initialized');
    await _prefs!.remove(key);
  } catch (e) {
    throw Exception('Failed to clear data: $e');
  }
}