DVRoutePage class

What one route's page is made from: everything dvRenderRoutePage needs, and nothing that varies by request.

The static build makes one per route and renders it; the web-server build writes the same values into its manifest, and the server reads them back and renders the same page on request.

Constructors

DVRoutePage({required String route, required String title, String? description, String? siteUrl, String? image, String? siteName, Map<String, String> alternates = const <String, String>{}, String? defaultAlternate, String? favicon, String? schemaType, String? content, String? html, List<String> text = const <String>[]})
const
DVRoutePage.fromJson(Map<String, Object?> json)
factory

Properties

alternates → Map<String, String>
final
content → String?
Prerendered text a model page carries in its metadata.
final
defaultAlternate → String?
final
description → String?
final
favicon → String?
The page's own icon, as the build resolved it.
final
hashCode → int
The hash code for this object.
no setterinherited
html → String?
The crawler-visible document captured from the page's semantics tree: headings, links, emphasis and code blocks, as the app declares them.
final
image → String?
final
route → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
schemaType → String?
What the page is, for its structured data; null is a WebPage.
final
siteName → String?
final
siteUrl → String?
final
text → List<String>
Plain lines from the page's source, used only when nothing was captured.
final
title → String
final

Methods

at(String path) → DVRoutePage
The same page at path, for a route matched by a pattern.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited

Operators

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