onInit method

  1. @mustCallSuper
void onInit()

Implementation

@mustCallSuper
void onInit() {
  if (_initialized) return;
  _initialized = true;

  // Changed from logDebug to logInfo - important lifecycle event
  ZenLogger.logInfo('Controller $runtimeType initialized');

  if (ZenConfig.enablePerformanceMetrics) {
    ZenMetrics.incrementCounter('controller.initialized');
  }
}