goBranch method
Navigate to a top-level AppBranch.
If the user moves to a different route, the branch's navigation stack will be maintained. When navigating back using this method, the original navigation stack will be displayed.
If initialLocation is true, however, the app will navigate to the
initial location of the branch.
Implementation
void goBranch(AppBranch branch, {bool initialLocation = true}) =>
StatefulNavigationShell.of(this).goBranch(
branch.index,
initialLocation: initialLocation,
);