DVStudioPageRoute class

Serves the Studio document for route when one exists, and fallback otherwise.

Precedence is deliberate and is the point of the builder: a stored document overrides the compiled @DVPage. A compiled page is the fallback entrypoint an app ships with — the editor has to be able to change it, or a shipped page could never be edited, only added to.

The store is read into memory once (DVPageStore.prime), so navigation resolves an override synchronously. Before that read finishes the fallback renders, which is why a cold start shows the compiled page rather than a blank frame; the override applies as soon as it is known.

Inheritance

Constructors

DVStudioPageRoute(String route, {Key? key, Widget? fallback, Widget notFound(String route)?})
const

Properties

fallback → Widget?
The compiled page for this route, when there is one. Null for a route that exists only as a stored document.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
notFound → Widget Function(String route)?
Shown when neither a stored document nor a fallback claims the route.
final
route → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<DVStudioPageRoute>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

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