checkNoTmpGroup static method

bool checkNoTmpGroup({
  1. bool showToast = true,
})

Implementation

static bool checkNoTmpGroup({bool showToast=true}) {
  Log.i(tag, "checkNoTmpGroup:showToast:$showToast");
  if(!pocChangeNotifier.hasTmpGroup()){
    return true;
  }else{
    if(showToast) {
      playText(getTranslation("TemporaryGroupAlreadyExists"), true);
      ToastUtils.instance.show(
          getTranslation("TemporaryGroupAlreadyExists"));
    }
    return false;
  }
}