onWillPop method
Implementation
bool onWillPop() {
if (currentMenu != null) {
if (GetInstance().isRegistered<MobileSearchBarController>() &&
Get.find<MobileSearchBarController>().viewMobileSearchBar) {
Get.find<MobileSearchBarController>().close();
return false;
} else {
currentMenu!.unfocus();
close();
return false;
}
} else {
return true;
}
}