CMSRoute constructor

CMSRoute({
  1. required String path,
  2. CMSPathResolver cmsPathResolver = _identityPathResolver,
  3. GoRouterWidgetBuilder? builder,
  4. GoRouterPageBuilder? pageBuilder,
  5. GlobalKey<NavigatorState>? parentNavigatorKey,
  6. String? name,
  7. ExitCallback? onExit,
  8. GoRouterRedirect? redirect,
  9. List<RouteBase> routes = const <RouteBase>[],
})

Creates a new CMS route.

Implementation

CMSRoute({
  required super.path,
  this.cmsPathResolver = _identityPathResolver,
  super.builder,
  GoRouterPageBuilder? pageBuilder,
  super.parentNavigatorKey,
  super.name,
  super.onExit,
  super.redirect,
  super.routes,
}) : super(
        pageBuilder: pageBuilder == null && redirect == null
            ? defaultRoutePageBuilder
            : pageBuilder,
      );