onPopInvoked method
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);
}
}