canPop method

bool canPop()

Implementation

bool canPop() {
  print("currentMenuCanpop:$currentMenu");
  if (currentMenu != null) {
    if (GetInstance().isRegistered<MobileSearchBarController>() &&
        Get.find<MobileSearchBarController>().viewMobileSearchBar) {
      return false;
    } else {
      return false;
    }
  } else {
    return true;
  }
}