Chapter 7 Router configuration

hey everyone! Thank you to the authors for making this book. Great read so far. Much Appreciated!

I had a question regarding the setup of Router with go_router. In the docs, the implementation is to only use the routerconfig param in the Router constructor. Like this:

MaterialApp.router(
      routerConfig: AppRouter.generateRouter(
        context.read<AuthBloc>().stream,
      )

but in the book we pass in three params in the constructor like so:

MaterialApp.router(
            routerDelegate: router.routerDelegate,
            routeInformationParser: router.routeInformationParser,
            routeInformationProvider: router.routeInformationProvider,
          )

do we need to explicitly pass this parameters? Any input would be much appreciated.

Thank you! :slight_smile: