NotationDefinition class final

One definition of a word: its signature and the lines it stands for.

Properties

bare → bool
A primitive declared with no lines of its own: its body is the labelled box. A use of one that names a behaviour with no picture (a key, a sound, a clock), or that stands beside an App or a Page at the top of a page, draws nothing (docs/design/20 section 12).
final
bind → String?
@value in the signature: the name the body calls the variable it keeps its value in, which a use's @name binds (both ways).
final
bindables → Set<String>
open=@ in the signature: further variables a use binds by name (open=@shown); a use that binds none keeps its own (the body's state open=false).
final
bindDefault → String?
@value=1: what bind starts at in a use that binds nothing (the use then keeps a value of its own); null when the signature gives none.
final
body → List<({int indent, int line, String text})>
The lines it stands for: each with its indent from the first (0), its text and its line in file.
final
dictionary → String?
The dictionary this definition comes from (its folder's name), or null for a page's own, a site's or a design system's.
final
doc → String
The signature as written, and the // lines above it (its purpose).
final
events → List<String>
The events it gives (onTap, onPick).
final
file → String
Where it is written: the file's name (StickyNote.txt, or page for a define in a page) and the 1-based line of its signature.
final
hashCode → int
The hash code for this object.
no setterinherited
label → String
StickyNote, or Timeline#route for one of several meanings.
no setter
line → int
final
name → String?
final
parameters → Map<String, String?>
Its parameters by name, each with its default as written (null: none). A flag is a parameter whose default is true or false.
final
primitive → bool
Declared with primitive (docs/design/20 section 12): a word for what no line can express, standing in for it. A use reads as a definition's does (its body, or a labelled box when it has none) and is recorded as a primitive, never as a word we have.
final
quoted → List<String>
The parameters the signature writes as a string with a default ("current"=home, "id"=0), in order: a use's strings past strings fill them, and nothing else does (a body line marked ... never takes such a string as a text of its own).
final
required → Set<String>
The parameters a use must give (key!).
final
rest → int
The body line marked ..., which takes the words a use writes beyond the signature (docs/design/20 section 13); -1: none (they go on the root, and only the universal words do).
no setter
rests → Set<int>
Every body line marked ... (one in each branch of an if that is decided as the use is read takes them alike).
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
signature → String
The signature as written, and the // lines above it (its purpose).
final
slots → List<String>
The names of its slots in body order ('' the default slot).
no setter
statement → bool
A word that stands for a statement (docs/design/20 section 13): its body is key, state or every lines and no node, written where the use is (Shortcut "ctrl+k" onPress={…} is a key line). Its word may be lowercase (computed), as a statement's is.
final
strings → List<String>
The names of its strings, in order ("text").
final
variants → List<String>
The variants a use may write (Timeline.vertical).
final
word → String
The word (StickyNote), and the name of this meaning when the word has several (Timeline#route: route).
final

Methods

at(int line) → String
Where it is written, for a message: StickyNote.txt:3.
isFlag(String key) → bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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