TypeAlias class final

A type read as another: RangeSlider is a Slider, with its own names for that type's parameters; GoKey is a Button.primary with size=lg.

Constructors

TypeAlias({String? to, String? variant, Map<String, String> parameters = const {}, String? add, List<String> requires = const []})
const
TypeAlias.fromJson(Object? json)
"to" may name a variant after the type (Button.primary).
factory

Properties

add → String?
Words added to the line, flags and fixed parameters (selected on a chip that is always on; size=lg selected). A key or a flag the line writes itself is the line's.
final
hashCode → int
The hash code for this object.
no setterinherited
parameters → Map<String, String>
Its own names for that type's parameters, flags and events, each by what it is read as (the forms of NotationVocabulary.parameters, and "$text": "label": the line's first string read as label=). These hold whatever the target type calls its own.
final
requires → List<String>
The keys the line has to have, once its own names are read, for the alias to hold (a RangeSlider is our Slider only with a variable for each end); without them the word is left as it was written. A bare @name on the line stands for the next key not written (RangeSlider @lo @hi has its low and its high).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
to → String?
The type it is read as.
final
variant → String?
The variant of to it is read as (primary: written "to": "Button.primary"), unless the line writes one of its own.
final

Methods

holdsOn(LineParts parts) → bool
Whether parts has what requires names.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Object
toString() → String
A string representation of this object.
inherited

Operators

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