DVRoute class
A path and the screen it shows. GoRoute, typed.
- Inheritance
-
- Object
- DVRouteNode
- DVRoute
Constructors
-
DVRoute({required String path, required DVRouteBuilder builder, String? name, String? title, DVRouteRedirect? redirect, PageTransitionSpec? transition, bool preview = true, bool cache = true, List<
DVRouteNode> routes = const <DVRouteNode>[]}) -
const
Properties
- builder → DVRouteBuilder
-
final
- cache → bool
-
False bypasses shared server HTML caching for this route.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String?
-
The
DVRoutesmember, when the one derived from path collides or reads badly. An identifier, not a path.final - path → String
-
Absolute at the top level and inside a shell (
/orders), relative under another DVRoute (:id). Written once, as a plain string: the build reads it for the typed target.final - preview → bool
-
Whether a
DVNavLinkresting on a link here shows the screen. Only a route with no parameters and no redirect over it ever does.final - redirect → DVRouteRedirect?
-
Runs before this route and every route under it activates.
final
-
routes
→ List<
DVRouteNode> -
Child routes, pushed over this one.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String?
-
The document title, over the project's SEO defaults.
final
- transition → PageTransitionSpec?
-
The page transition, when not the project's default.
final
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