From e93ae84781004b179271fa611ce7ea1b71eac01b Mon Sep 17 00:00:00 2001 From: cedvdb Date: Tue, 24 Sep 2024 13:08:56 +0200 Subject: [PATCH] improve doc --- packages/go_router/lib/src/delegate.dart | 5 ++--- packages/go_router/lib/src/router.dart | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/go_router/lib/src/delegate.dart b/packages/go_router/lib/src/delegate.dart index d2c5080941d..0d0afac7d6d 100644 --- a/packages/go_router/lib/src/delegate.dart +++ b/packages/go_router/lib/src/delegate.dart @@ -168,9 +168,8 @@ class GoRouterDelegate extends RouterDelegate }()); } - /// 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); diff --git a/packages/go_router/lib/src/router.dart b/packages/go_router/lib/src/router.dart index 8a950a4eee8..5898bd27cea 100644 --- a/packages/go_router/lib/src/router.dart +++ b/packages/go_router/lib/src/router.dart @@ -254,9 +254,8 @@ class GoRouter implements RouterConfig { }()); } - /// 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.