RouteDescriptor class final

Descriptor for configuring route content type in the system.

Allows configuring:

  • Lifecycle handlers for route initialization and cleanup
  • Route types (page, dialog)
  • Available layouts for routes

Example:

final descriptor = RouteDescriptor(
  lifecycleHandlers: [myHandler],
  routeTypes: [PageRouteType.typeDescriptor],
  layouts: [DefaultRouteLayout.typeDescriptor],
);
Inheritance
  • Object
  • ContentDescriptor
  • RouteDescriptor

Constructors

RouteDescriptor({List<TypeDescriptor<RouteLifecycleConfiguration>>? lifecycleHandlers, List<TypeDescriptor<RouteTypeConfiguration>>? routeTypes, List<TypeDescriptor<LayoutConfiguration<ContentItem>>>? layouts})

Properties

hashCode → int
The hash code for this object.
no setterinherited
layouts → List<TypeDescriptor<LayoutConfiguration<ContentItem>>>?
finalinherited
lifecycleHandlers ↔ List<TypeDescriptor<RouteLifecycleConfiguration>>?
getter/setter pair
routeTypes ↔ List<TypeDescriptor<RouteTypeConfiguration>>?
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
schemaType → String
finalinherited
sourceFeature → String?
The feature that this content descriptor was registered by.
no setterinherited
title → String
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setSourceFeature(String? featureName) → void
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited