checkHasGroupExceptContact static method

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

Implementation

static bool checkHasGroupExceptContact({bool showToast=true}){
  Log.i(tag, "checkHasGroupExceptContact:$showToast");
  if(pocChangeNotifier.groups.length>1){
    return true;
  }else{
    if(showToast){
      playText(getTranslation("NoGroup"), true);
      ToastUtils.instance.show(getTranslation("NoGroup"));
    }
    return false;
  }
}