popToFirstRoute method
Implementation
Future<void> popToFirstRoute() async {
return Navigator.popUntil(
rootContext,
(route) => route.isFirst,
);
}
Future<void> popToFirstRoute() async {
return Navigator.popUntil(
rootContext,
(route) => route.isFirst,
);
}