Skip to content

Commit

Permalink
improve doc
Browse files Browse the repository at this point in the history
  • Loading branch information
cedvdb committed Sep 24, 2024
1 parent 04d076a commit e93ae84
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions packages/go_router/lib/src/delegate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,8 @@ class GoRouterDelegate extends RouterDelegate<RouteMatchList>
}());
}

/// This top [GoRouterState].
/// This returns the state of the route that was last used in
/// either [GoRouter.go] or [GoRouter.push].
/// The top [GoRouterState], the state of the route that was
/// last used in either [GoRouter.go] or [GoRouter.push].
GoRouterState? get state => currentConfiguration.last
.buildState(_configuration, currentConfiguration);

Expand Down
5 changes: 2 additions & 3 deletions packages/go_router/lib/src/router.dart
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,8 @@ class GoRouter implements RouterConfig<RouteMatchList> {
}());
}

/// This top [GoRouterState].
/// This returns the state of the route that was last used in
/// either [GoRouter.go] or [GoRouter.push].
/// The top [GoRouterState], the state of the route that was
/// last used in either [GoRouter.go] or [GoRouter.push].
GoRouterState? get state => routerDelegate.state;

/// Whether the imperative API affects browser URL bar.
Expand Down

0 comments on commit e93ae84

Please sign in to comment.