FieldKind class final
What kind of control a field is shown with, and what shape its value has.
A class with constants rather than an enum, so a kind added in a minor
breaks no switch: name is what a document writes, and byName reads
it back. An editor that meets a kind it does not know shows the value as
text.
Properties
Methods
-
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
Static Methods
Constants
- asset → const FieldKind
- A path to a file of the project, relative to its assets, ending in one of FieldHint.suffixes when it names any.
- choice → const FieldKind
- One word of FieldHint.choices.
- color → const FieldKind
- A linear colour, three numbers from 0 (or four, with alpha).
- entity → const FieldKind
- The name of another entity of the same level.
- integer → const FieldKind
- A whole number, optionally with ends.
- number → const FieldKind
- A decimal number, optionally with ends, a step and a unit.
- text → const FieldKind
- Free text.
- toggle → const FieldKind
- Yes or no.
-
values
→ const List<
FieldKind> - Every value this version names, in declaration order. A later version appends; nothing is removed or renamed within a major.
- vector3 → const FieldKind
- Three numbers: a position, a size, a direction.