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

hashCode → int
The hash code for this object.
no setterinherited
name → String
The stable name, and the wire name. Never renamed within a major.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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

byName(String name) → FieldKind?
The value called name, or null for a name this version does not know, which is what a document written by a later version can carry.

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.