showOrDismissDialog method

void showOrDismissDialog()

Implementation

void showOrDismissDialog() {
  WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
    LogUtils.dWidget("ID:$id, node:$idDesc, modal can show:$canDialogShow");
    if (canDialogShow) {
      showDialog();
    } else {
      dismissDialog();
    }
  });
}