onClose method
Called whenever a Controller is closed. onClose is called just before the Controller is closed and indicates that the particular instance will no longer emit new states.
Implementation
@protected
@mustCallSuper
void onClose(BaseController controller) {}