onReady method

  1. @mustCallSuper
void onReady()

Implementation

@mustCallSuper
void onReady() {
  if (_ready) return;
  _ready = true;

  // Restore the nearest active previous parent controller after initialization completes
  if (currentParentController == this) {
    currentParentController = _nextActiveParent();
  }
  _savedParent = null;

  ZenLogger.logInfo('Controller $runtimeType ready');

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