NotationSiteExpander class final
Expands a site's files with what the site and a design system give them
(see the library's comment), as the tool's NotationExpander does.
Constructors
- NotationSiteExpander(NotationSiteFiles site, {DesignSystem? designSystem, NotationSiteSettings settings = notationSiteDefaults, bool themeOverDesignSystem = false, Catalog? catalog})
Properties
- base → Catalog
-
The catalog under the design system's and the site's components.
final
-
componentResults
→ Map<
String, NotationResult> -
The results of the components expanded so far, by type.
final
- designSystem → DesignSystem?
-
The design system the site is drawn in; null: none.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- pageDesignSystem → DesignSystem?
-
The design system a page of the site is shown with: the one given,
with the site's theme over its own and the site's components among
its own. Null when there is nothing of either.
latefinal
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- settings → NotationSiteSettings
-
final
- site → NotationSiteFiles
-
final
- theme → ThemeTokens
-
The site's theme: its own, over the design system's tokens with
themeOverDesignSystem.
no setter
- themeOverDesignSystem → bool
-
Whether the site's theme is laid over the design system's tokens (a
site with no theme of its own then has the design system's looks).
False, as the tool has it: a site's theme is its own alone.
final
Methods
-
expand(
String text, {required String screen}) → NotationResult -
Expands
text(the file atpath) as the canvasscreen: a page (its one leading### Nameline is left out), or a component. -
expandAll(
) → ExpandedNotationSite - The whole site expanded: its notation components, then its pages, with each overlay two pages write with one id and draw differently made the page's own.
-
expandPage(
String path) → NotationResult -
Expands the page at
path(one of NotationSiteFiles.pageSources), its file name the canvas id. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited