i am using auto_route plugin for my flutter web project. for now, I have just implemented 3 pages for the navigation demo.

  1. first page
  2. second page
  3. third page

and this is my routing setup

  replaceInRouteName: 'Route',
  routes: <AutoRoute>[
    AutoRoute(page: FirstPage, initial: true),
    AutoRoute(page: SecondPage),
    AutoRoute(page: ThirdPage),
class $AppRouter {}

i am passing argument from first page to second page as

        SecondPageRoute(value: "This is passed value"),

and then navigating from second page to third page. and from the third page when I am pressing the back button from the chrome browser, it throws an error as

SecondPageRouteArgs can not be null because it has a required parameter

because while navigating back, the required argument on the second page is not getting(obviously it will not), so I don't know how to solve this.