diff --git a/app_navigator/lib/src/content_navigator.dart b/app_navigator/lib/src/content_navigator.dart index 21803c8..deb24b0 100644 --- a/app_navigator/lib/src/content_navigator.dart +++ b/app_navigator/lib/src/content_navigator.dart @@ -182,6 +182,11 @@ class ContentNavigatorBloc extends BaseBloc { } } + /// Pop to root screen + void popToRoot(BuildContext context) { + popUntilPathOrPush(context, rootContentPath); + } + /// Returns true if found void transientPopUntilPath(BuildContext context, ContentPath path) { if (_routeAwareManager != null) {