onBackPressed method
void
onBackPressed()
Implementation
void onBackPressed() {
if (itemsOnStack > 1) {
nestedKey?.currentState?.pop();
} else {
Get.back();
}
itemsOnStack--;
}
void onBackPressed() {
if (itemsOnStack > 1) {
nestedKey?.currentState?.pop();
} else {
Get.back();
}
itemsOnStack--;
}