I'm using go_router_builder
to build routes. Here's one:
@TypedGoRoute<HomeRoute>(
path: '/',
)
class HomeRoute extends GoRouteData {
final Foo? $extra;
HomeRoute([this.$extra]);
@override
Widget build(BuildContext context, GoRouterState state) {
return HomeScreen();
}
}
Now the problem is I can't figure out a way to pass the Foo
object to HomeRoute
in the code.