Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
chunhtai committed May 8, 2024
1 parent 1e95758 commit ac97877
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/go_router/lib/src/route.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1272,6 +1272,7 @@ class StatefulNavigationShellState extends State<StatefulNavigationShell>
/// initialLocation is true, this method will navigate to initial location of
/// the branch (see [StatefulShellBranch.initialLocation]).
void goBranch(int index, {bool initialLocation = false}) {
assert(index >= 0 && index < route.branches.length);
final RouteMatchList? matchList =
initialLocation ? null : _matchListForBranch(index);
if (matchList != null && matchList.isNotEmpty) {
Expand Down

0 comments on commit ac97877

Please sign in to comment.