onInit method

  1. @mustCallSuper
  2. @override
void onInit()
override

Called when the controller is initialized.

This method should be overridden to perform initialization logic specific to the controller. It is invoked after the parent's onInit method is called.

Implementation

@mustCallSuper
@override
void onInit() {
  super.onInit();
  ambiguate(Engine.instance)!.addObserver(this);
}