checkIsInGroup static method

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

检查是否在组

Implementation

static bool checkIsInGroup({bool showToast=true}) {
  if (pocChangeNotifier.activeGroupId > 0) {
    return true;
  } else {
    if(showToast) {
      playText(getTranslation("NotInGroup"), true);
      ToastUtils.instance.show(getTranslation("NotInGroup"));
    }
    return false;
  }
}