Skip to content
Open
Changes from all commits
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
4 changes: 2 additions & 2 deletions packages/go_router/doc/type-safe-routes.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ part 'go_router_builder.g.dart';
]
)
@immutable
class HomeScreenRoute extends GoRouteData with _$HomeScreenRoute {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As @stuartmorgan-g mentioned, we should convert this to excerpt.

See example in

<?code-excerpt "../example/lib/stateful_shell_route.dart (configuration-branches)"?>

class HomeScreenRoute extends GoRouteData with $HomeScreenRoute {
@override
Widget build(BuildContext context, GoRouterState state) {
return const HomeScreen();
}
}

@immutable
class SongRoute extends GoRouteData with _$SongRoute {
class SongRoute extends GoRouteData with $SongRoute {
final int id;

const SongRoute({
Expand Down