Route constructor
Route({
- required String title,
- required RouteTypeConfiguration? routeType,
- required String path,
- required List<
Region> regions, - required DateTime createdAt,
- required DateTime updatedAt,
- required String id,
- String? category,
- LayoutConfiguration<
ContentItem> ? layout, - List<
RouteLifecycleConfiguration> ? lifecycleHandlers,
Implementation
Route({
required super.title,
required super.routeType,
required super.path,
required this.regions,
required super.createdAt,
required super.updatedAt,
required super.id,
super.category,
super.layout,
this.lifecycleHandlers,
}) : super(schemaType: Route.schemaName) {
setParent(regions.expand((element) => element.items));
}