checkHasOtherGroupExceptContact static method

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

Implementation

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