NotationSiteFiles class final

A site's files as the expander reads them.

Constructors

NotationSiteFiles(Map<String, String> files, {Catalog? catalog, bool appStatePartial = false, Iterable<String> themeColors = const []})
Reads files (path → text). The manifest is site.json, the pages pages/*.txt, the components components/*.txt, each beside the others: one place for each. site/ is what expand writes from them, never read as a source. Any other file is not read. catalog says which words the notation already has (a component of such a name is said).

Properties

appState ↔ NotationAppState?
What the app's state file declares; null when the site has none.
getter/setter pair
appStatePath → String?
The path of the app's state file among files (app.txt beside the pages); null when the site has none.
no setter
appVariables → Map<String, Json>
app.txt's state by name, as variables has it; empty with no such file.
no setter
builtManifest → Json?
The manifest a render reads this site's variables from, when it is not the site's own as written (notationBuiltManifest); null: nothing to write.
no setter
definedWords → Map<String, String>
The words definitionFiles define, by the file that defines each.
latefinal
definitionFiles → Map<String, String>
The components/*.txt that are define (or primitive) blocks, by path: each word they define is the site's, read by every page and component.
final
definitionText → String?
definitionFiles as one text, for parseNotation's definitions; null when there are none.
latefinal
files → Map<String, String>
The files, by path with / between its parts.
final
hashCode → int
The hash code for this object.
no setterinherited
hasManifest ↔ bool
Whether the site has a manifest of its own (one expand wrote whole is not: notationSourceManifest).
getter/setter pair
listedScreens → List<String>
The ids of the pages the manifest lists (each reference's file stem).
latefinal
manifest ↔ Json
The manifest as read (empty when there is none, or it is not JSON).
getter/setter pair
manifestPath → String
The manifest's path among files.
no setter
orderedPageSources → List<String>
The pages written in the notation in the order shown: the manifest's order, then the others with home first and the rest by name (the whole order of a site with no manifest, or one that lists no pages).
latefinal
ownTheme → ThemeTokens
The site's own theme (its manifest's).
latefinal
pageSources → List<String>
The pages written in the notation, by path, in file order.
latefinal
problems → List<NotationSiteProblem>
What is not read or must be said: a manifest that is not JSON, a component file that is neither a component nor definitions, a second file of one type, what a file of definitions has wrong, a word that reaches itself through the words of other files.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
screens → List<String>
The ids of the site's pages: the ones the manifest lists, then the ones written that it does not (notationPageOrder: home first, then by name).
latefinal
sharedDeclarations → List<Json>
The variables every page shares as a view's scope declares them (Variable.declarationsFromJson reads it): the manifest's and app.txt's, without app.txt's formulas with no type (those are written out on each page that reads them).
no setter
sources → Map<String, NotationComponentSource>
The components written in the notation with a component head, by type.
final
variables ↔ Map<String, Json>
The site's variables by name, as NotationOptions.projectVariables takes them.
latefinal

Methods

definitionLine(int line) → ({int line, String path})?
Where a line of the site's definitions is written: line of definitionText as its file and the line in it; null past the end.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
ordered() → List<NotationComponentSource>
The notation components in the order they can be expanded: each after the components it calls.
toString() → String
A string representation of this object.
inherited

Operators

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