onViewDispose method
dynamic
onViewDispose()
Called when the View is removed from the widget tree permanently, allowing you to release resources held by the View.
Implementation
onViewDispose() {
presenter.isViewActive = false;
}