popToFirstRoute method

Future<void> popToFirstRoute()

Implementation

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