onPopInvoked method

void onPopInvoked(
  1. BuildContext context
)

Implementation

void onPopInvoked(BuildContext context) {
  print("onPopInvoked");
  if (currentMenu != null) {
    if (GetInstance().isRegistered<MobileSearchBarController>() &&
        Get.find<MobileSearchBarController>().viewMobileSearchBar) {
      Get.find<MobileSearchBarController>().close();
      update();
    } else {
      currentMenu!.unfocus();
      close();
    }
  } else {
    print("pop");
    Navigator.pop(context);
  }
}