RouteCatalog class

Shared route definitions and page metadata for browser, SSR, and SSG use.

The catalog itself has no browser or server-I/O dependencies.

Available extensions

Constructors

RouteCatalog({required Iterable<RouteConfig> routes, required RouteCatalogPageBuilder notFoundBuilder, RouteMetadataBuilder? notFoundMetadataBuilder})
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
notFoundBuilder → RouteCatalogPageBuilder
final
routes → List<RouteConfig>
final
routeTable → RouteTable
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

generateStaticSite({required Map<String, Iterable<String>> concretePathsByRoute, required String outputDirectory, StaticSiteGenerator? generator}) → Future<List<File>>

Available on RouteCatalog, provided by the RouteCatalogStaticSiteGeneration extension

Generates only the concrete paths explicitly assigned to catalog routes.
metadataFor(RouteMatch match) → HeadMetadata
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pageFor(RouteMatch match) → SsrComponent
renderRequest(String location, {String rootId = 'app', String? clientScript = '/main.dart.js'}) → RouteRenderResult
resolve(String location) → RouteMatch
routeFor(RouteMatch match) → RouteConfig?
toString() → String
A string representation of this object.
inherited

Operators

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