switchEnv method
Implementation
Future<bool> switchEnv(FirebaseEnvConfig config) async {
if (config.webConfig == null) {
logger.warning('No Web configuration found for: ${config.name}. Skipping Web update.');
return true;
}
logger.info('Updating Web environment to: ${config.name}');
try {
await _updateWebConfig(config);
await _updateAppName(config);
logger.success('Web switch successful.');
return true;
} catch (e) {
throw PlatformHandlerException('Web switch failed: $e');
}
}