settings property

RouteSettings get settings

return the current route settings

Implementation

RouteSettings get settings {
  assert(
    ContextlessNavigator.i.routeSettings != null,
    '''
  you need to define the navigator observer to allow
  flutter_meedu store the settings of the current route

    MaterialApp(
      key: router.appKey,
      initialRoute: '/',
      navigatorKey: router.navigatorKey,
      navigatorObservers: [
        router.observer, //<-- ADD THIS LINE
      ],
      routes: YOUR_ROUTES,
    ),

  ''',
  );
  return ContextlessNavigator.i.routeSettings!;
}