VocabularyUse class final
One use of a word the notation has no meaning for (or an alias of one it has): what was written, where, and enough of its line to map the word to one that exists or to build it.
Constructors
-
VocabularyUse({required String kind, required String word, required String source, required int line, required int column, String? on, String? value, String? to, String? node, List<
String> path = const [], List<String> texts = const [], Map<String, String> parameters = const {}, List<String> flags = const [], Map<String, String> events = const {}, List<String> ? children, String? of})
Properties
-
children
→ List<
String> -
final
- column → int
-
1-based.
final
-
events
→ Map<
String, String> -
final
-
flags
→ List<
String> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- kind → String
-
type(a line's first word),parameter(a key=value),flag(a bare word),event(an on… key),verb(an action's first word),variant(the word after a type's dot),alias(a name read as another: to says which, of what kind of word it is),definition(a use of a defined word: to the meaning read) orprimitive(a use of a word declared withprimitive, which stands in: to the same).final - line → int
-
1-based.
final
- node → String?
-
A stand-in's node id in the document (a
typeonly).final - of → String?
-
An alias: the kind of word it is (
type,parameter,flag,event,verb,line). A definition:page, over <file>when the page's own definition was read over one the design system has (page, over the Counter componentover a component). A universal word (docs/design/21):parameter,flagorevent.no setter - on → String?
-
The type whose line it is on (null for a type, and for a verb in a
line that is not a node's:
every,key).final -
parameters
→ Map<
String, String> -
final
-
path
→ List<
String> -
The words of the lines it is under, outermost first (
App,Main,Card);ifandeachlines are not words.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → String
-
The whole line as written, without its indentation.
final
-
texts
→ List<
String> -
A type's strings, its key=value pairs (as written), its bare words,
its events (the actions as written) and the first words of the lines
directly under it.
final
- to → String?
-
An alias: what the word was read as (
Slider,enabled,go, or a whole line), and in of the kind of word it is.final - value → String?
-
Its value as written (
{row.name},"Archive",3); a verb's argument; null for a flag and a type.final - word → String
-
The word as written (
SeatMap,tooltip,selectable,onSeek,haptic,Button.danger).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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited