PressPage class final

One immutable page in a Press content collection.

Constructors

PressPage({required Iterable<String> slug, required Uri location, required String title, required MdcDocument content, required String sourcePath, String? description, int order = 0, bool draft = false, String? language})
Creates a parsed content page.

Properties

content → MdcDocument
Parsed renderer-neutral MDC content.
final
description → String?
Optional search and navigation description.
final
draft → bool
Whether this page is excluded from normal collections.
final
frontmatter → Map<String, Object?>
Complete immutable frontmatter, including application-owned fields.
no setter
hashCode → int
The hash code for this object.
no setterinherited
language → String?
Optional document language.
final
location → Uri
Public page location.
final
order → int
Navigation order.
final
outline → List<MdcOutlineEntry>
Hierarchical heading outline.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
slug → List<String>
Path segments relative to the collection mount.
final
sourcePath → String
Source path relative to the content root.
final
title → String
Page title from frontmatter.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDocument({MdcHtmlRenderer? renderer, Uri? canonicalOrigin}) → RouteDocument
Renders this page as a semantic route document.
toString() → String
A string representation of this object.
inherited

Operators

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