Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
cedvdb committed Nov 3, 2024
1 parent ca30f19 commit af41cd5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/go_router/lib/src/router.dart
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,10 @@ class GoRouter implements RouterConfig<RouteMatchList> {

/// The top [GoRouterState], the state of the route that was
/// last used in either [GoRouter.go] or [GoRouter.push].
///
/// Accessing this property via GoRouter.of(context).state will not
/// cause rebuild if the state has changed, consider using
/// GoRouterState.of(context) instead.
GoRouterState? get state => routerDelegate.state;

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

0 comments on commit af41cd5

Please sign in to comment.