clearApiKey method

Future<void> clearApiKey()

Implementation

Future<void> clearApiKey() async {
  try {
    await _secureStorage.delete(key: _apiKeySecureKey);
    notifyListeners();
  } catch (e) {
    debugPrint('Error deleting API key from secure storage: $e');
    rethrow;
  }
}