checkHasGroup static method

bool checkHasGroup(
  1. int groupId, {
  2. bool showToast = true,
})

Implementation

static bool checkHasGroup(int groupId,{bool showToast=true}){
    Log.i(tag, "checkHasGroup:$showToast");
    dynamic group=pocChangeNotifier.getGroup(groupId);
    if(group!=null){
      return true;
    }else{
      if(showToast){
        playText(getTranslation("NoGroup"), true);
        ToastUtils.instance.show(getTranslation("NoGroup"));
      }
      return false;
    }
}