checkHasUser static method

bool checkHasUser(
  1. int userId, {
  2. bool showToast = true,
})

Implementation

static bool checkHasUser(int userId,{bool showToast=true}) {
  dynamic user=pocChangeNotifier.getUser(userId);

  if(user!=null){
    return true;
  }else{
    if(showToast){
      playText(getTranslation("NoMatchingUsers"), true);
      ToastUtils.instance.show(getTranslation("NoMatchingUsers"));
    }
    return false;
  }
}