I want to reload a page in flutter web and want to remain on same the page how can i do it ?

I tried auto route package of flutter

`import 'package:auto_route/annotations.dart';

import 'package:auto_route/auto_route.dart';

import 'portal_router.gr.dart';

@AutoRouterConfig(replaceInRouteName: 'Route')

class AppRouter extends $AppRouter {

  @override

  List<AutoRoute> get routes => [

        AutoRoute(
          page: LandingPageRoute.page,
          path: "/landing-page-route",
          initial: true,
        ),

        AutoRoute(page: MyDrawerRoute.page),

        AutoRoute(

page: LandingPageRoute.page,

),

      ];
}`
0

There are 0 best solutions below