Route constructor

Route({
  1. required String title,
  2. required RouteTypeConfiguration? routeType,
  3. required String path,
  4. required List<Region> regions,
  5. required DateTime createdAt,
  6. required DateTime updatedAt,
  7. required String id,
  8. String? category,
  9. LayoutConfiguration<ContentItem>? layout,
  10. 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));
}