onViewModelDestroy method

  1. @override
void onViewModelDestroy()
override

Implementation

@override
void onViewModelDestroy() {
  canDialogShow = false;
  showOrDismissDialog();
  context.removeInstanceLifecycleEventListener(this);
  super.onViewModelDestroy();
}