RouteDocument class final
Route-owned semantic HTML and head information.
Parent and child route documents are merged in match order. The deepest title and duplicate metadata win. A parent's body may contain an HtmlOutlet where its matched child's body is inserted.
Constructors
-
RouteDocument({String? language, String? baseHref, String? title, String? description, String? canonical, List<
DocumentMeta> meta = const <DocumentMeta>[], List<DocumentLink> links = const <DocumentLink>[], List<Object?> jsonLd = const <Object?>[], Map<String, String?> htmlAttributes = const <String, String?>{}, Map<String, String?> bodyAttributes = const <String, String?>{}, HtmlNode? body}) -
Creates one route document fragment.
const
Properties
- baseHref → String?
-
The base URL used to resolve relative document resources.
final
- body → HtmlNode?
-
Semantic content, or null when this route only contributes head data.
final
-
bodyAttributes
→ Map<
String, String?> -
Attributes merged onto the body element.
final
- canonical → String?
-
The canonical URL. The deepest declaration wins.
final
- description → String?
-
The search-result description. The deepest declaration wins.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
htmlAttributes
→ Map<
String, String?> -
Attributes merged onto the root html element.
final
-
jsonLd
→ List<
Object?> -
JSON-LD values emitted as
application/ld+jsonscripts.final - language → String?
-
The document language. The deepest declaration wins.
final
-
links
→ List<
DocumentLink> -
Additional head links, including alternates and preload hints.
final
-
meta
→ List<
DocumentMeta> -
Additional metadata, including Open Graph and robots declarations.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String?
-
The page title. The deepest declaration wins.
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