DVRouteInfo class

One generated route, as the route explorer sees it.

DVRoutes is a class of static consts, which nothing can enumerate — it is for navigating to a known route, not for asking what routes exist. The generated dartvelRouteManifest is a list of these.

Constructors

DVRouteInfo({required String path, required String page, required String directory, List<String> parameters = const <String>[], String? module, String? location})
const

Properties

directory → String
Where the page was declared, so a route can be traced back to a file.
final
hashCode → int
The hash code for this object.
no setterinherited
isDynamic → bool
Whether the route takes parameters, which is what makes it a pattern rather than a page you can simply open.
no setter
isLocal → bool
Whether this application serves the route itself.
no setter
location → String?
Where a federated module's route answers from, or null for a route this application serves itself.
final
module → String?
The mounted module whose page this is, or null for the application's own. A route explorer that could not tell them apart would show a module's pages as the parent's.
final
page → String
The generated page widget serving it.
final
parameters → List<String>
The path parameters, in the order they appear.
final
path → String
The route pattern, parameters included: /posts/:slug.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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