applyEnvironment static method
Apply settings for different environments
Implementation
static void applyEnvironment(String env) {
switch (env) {
case 'dev':
enableDebugLogs = true;
strictMode = true;
enablePerformanceTracking = true;
enableMetrics = true;
enableNavigationLogging = true;
enableRouteLogging = true;
enableDependencyVisualization = true;
break;
case 'test':
enableDebugLogs = true;
strictMode = true;
enableAutoDispose = false;
enableMetrics = false;
enableNavigationLogging = false;
enableRouteLogging = false;
break;
case 'prod':
enableDebugLogs = false;
strictMode = false;
enablePerformanceTracking = false;
enableMetrics = false;
enableNavigationLogging = false;
enableRouteLogging = false;
break;
}
}