onClose method

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

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();
}