popToScreen method
Implementation
void popToScreen({required String screen}) {
Navigator.of(Get.context!).popUntil(ModalRoute.withName(screen));
}
void popToScreen({required String screen}) {
Navigator.of(Get.context!).popUntil(ModalRoute.withName(screen));
}