onClose method
Called when the controller is disposed.
This method should be overridden to perform cleanup logic
specific to the controller. It is invoked before the parent's onClose
method is called.
Implementation
@mustCallSuper
@override
void onClose() {
ambiguate(Engine.instance)!.removeObserver(this);
super.onClose();
}