StaticRouteManifest class
Registry and resolver for statically buildable routes and dynamic data expansion.
Constructors
-
StaticRouteManifest({List<
StaticPageRoute> ? routes, List<StaticPageRoute> ? initialRoutes, List<StaticPatternResolver> ? patterns})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
patterns
→ List<
StaticPatternResolver> -
All registered dynamic route patterns.
no setter
-
routes
→ List<
StaticPageRoute> -
All registered concrete static routes.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
) → void - Clears all registered routes and patterns.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register(
StaticPageRoute route) → void - Registers a concrete static route. If a route with the same normalized path exists, it is replaced deterministically.
-
registerDynamic<
T> ({required String pathPattern, required Iterable< T> items, required String slugExtractor(T item), required WebMetadata metadataBuilder(T item), MantleComponent componentBuilder(T item, MantleContext context)?}) → void - Registers an expanded set of routes from a dynamic data list.
-
registerPattern(
StaticPatternResolver pattern) → void - Registers a dynamic route pattern resolver.
-
resolveAll(
[MantleContext? context]) → Future< List< StaticPageRoute> > -
Resolves all registered static routes, expanding all dynamic patterns.
Routes are returned in deterministic order: root
/first, then alphabetically. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited