Page class Null safety

Page is leaf node which cannot have other subpages.

Inheritance
Implementers

Constructors

Page({required String path, String? content, Map<String, dynamic> metadata = const <String, dynamic>{}})

Properties

aliases List
read / write
content String?
final
date DateTime?
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
isIndex bool
read-only
jinja bool
late, final
metadata Map<String, dynamic>
final
path String
final
public bool
Public pages are build into public folder. When public is false, the page is not build. It is still accessible in templates in both cases.
late, final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
tags List
late, final
title String
late, final

Methods

getBuildPath(Config config) String
Get final build path for this Page. [...]
getPages() List<Page>
override
getPublicUrl(Config config, {bool isServe = false}) String
getUpdated(Config config) Future<DateTime?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toMap() Map<String, Object?>
override
toString() String
A string representation of this object. [...]
override
when<R>({R section(Section section)?, R page(Page page)?}) → R?
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited