Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
improve doc
  • Loading branch information
cedvdb committed Sep 24, 2024
commit e93ae84781004b179271fa611ce7ea1b71eac01b
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