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