clear method

Future<void> clear()

Limpia configuración (para testing)

Implementation

Future<void> clear() async {
  _currentConfig = null;
  _configSourceInfo = null;
  _isInitialized = false;

  try {
    await _storage.storeInternalState(_currentConfigKey, null);
    await _storage.storeInternalState(_remoteConfigKey, null);
    await _storage.storeInternalState(_remoteConfigTimestampKey, null);

    // Limpiar también obsly_tools
    await _toolsController.clear();
  } catch (e) {
    ObslyLogger.error('Error clearing config: $e');
  }
}