SiteManifest class final
A site's manifest (site.json), loader-agnostic: which documents are its
pages and components (as references the loader resolves: file paths
relative to the manifest, publish ids...), its project variables (read by
bare name in every document), breakpoints and any keys it doesn't model.
{"schema": 3, "pages": ["pages/pricing.json"], "components": ["components/PlanCard.json"],
"variables": [{"name": "plans", "type": "list", "value": [...]}],
"breakpoints": [{"id": "mobile", "minWidth": 0}, {"id": "desktop", "minWidth": 1024}]}
variables is also written by name ({"cart": [], "plan": "pro", "draft": {"value": "", "persist": true}}), and a variable that names no type has
its value's (Variable.declarationsFromJson).
Flutter: an app's lib/: the pubspec, main.dart's routes and
globals. Without components, a loader takes every component document
it finds beside the pages (a directory's components/).
- Annotations
-
- @immutable
Constructors
-
SiteManifest({List<
String> pages = const [], List<String> components = const [], List<Variable> variables = const [], Object? breakpoints, ThemeTokens theme = ThemeTokens.none, List<FontFamily> fonts = const [], String? designSystem, List<String> dictionary = const [], String? now, Json extra = const {}}) -
const
Properties
- breakpoints → Object?
-
The project's breakpoints, as JSON (
Breakpoints.fromJson); null: the defaults.final -
components
→ List<
String> -
References to its component documents (empty: the loader's default).
final
- designSystem → String?
-
The design system the site is made with (
"designSystem": "../design_systems/ssui": its folder relative to the manifest, or its published id): its tokens are the site's base theme (theme is merged over them) and its components are callable by type, as the site's own are (DesignSystem). Null: none (controls are neutral; nothing comes from the app the site runs in).final -
dictionary
→ List<
String> -
The dictionaries the site's notation reads (
"dictionary": ["../words"], or one folder as a string): folders of definitions (a<Word>.txteach, adefine), relative to the manifest. A word the page, the site and its design system do not define is read from the first of them that does. Empty: none.final - extra → Json
-
Keys it doesn't model, kept.
final
-
fonts
→ List<
FontFamily> -
The font families the site ships as files beside it (a pubspec's
fonts:), registered when it runs: published as the project's fonts, each file at its path relative to the site.final - hashCode → int
-
The hash code for this object.
no setterinherited
- now → String?
-
The instant the site's seed data is written for (
"now": "2026-11-16T09:00:00", an ISO 8601 time): whatnow()andtoday()give where the site is previewed (the render and states commands read it as their--nowwhen none is passed), so a calendar, a countdown or a "due today" is drawn on the day its data means. A running app does not read it: its clock is the device's. Null: none.final -
pages
→ List<
String> -
References to its pages, in order.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- theme → ThemeTokens
-
The project's theme: its named colors and text styles (the type scale
and palette every page and component names:
"color": "ember","style": "title"), its roles (primary,surface...) and the media rules that change them by screen size. Published as the project's theme.final -
variables
→ List<
Variable> -
Project variables: every page and component reads them by name.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Json -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited