onInit method
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);
}