Page class
A single page of the site.
It contains the page's path, url, content, and additional data.
The page object is passed to the different modules of the content package and may be modified by them.
How the page is built is determined by the PageConfig object.
Constructors
Properties
- config → PageConfig
-
The configuration for the page.
final
- content ↔ String
-
The (unparsed) content of the page.
getter/setter pair
- data → PageDataMap
-
Data available to the page.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- loader → RouteLoader
-
The route loader that created this page.
final
- path → String
-
The path of the page including its suffix, e.g. 'index.html', 'some/path.md'.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- url → String
-
The url of the page, e.g. '/', '/some/path'.
final
Methods
-
apply(
{String? content, Map< String, Object?> ? data, bool mergeData = true}) → void -
Applies changes to the page
contentordata. -
build(
) → Future< Component> -
copy(
) → Page -
markNeedsRebuild(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readPartial(
String path) → Future< String> -
readPartialSync(
String path) → String -
render(
) → Future< Component> - Renders the page.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited