CMSRoute constructor
CMSRoute({
- required String path,
- CMSPathResolver cmsPathResolver = _identityPathResolver,
- GoRouterWidgetBuilder? builder,
- GoRouterPageBuilder? pageBuilder,
- String? name,
- ExitCallback? onExit,
- GoRouterRedirect? redirect,
- 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,
);