FieldKind enum
How a renderer should read one value out of a payload.
Small on purpose. A kind exists when knowing it changes the rendering —
right-aligning a number, writing 1.4 MB instead of 1468006, drawing a
bar for a duration. Anything else is text, and a renderer that meets a
kind it does not know falls back to text rather than refusing the row.
Values
- text → const FieldKind
- number → const FieldKind
- duration → const FieldKind
-
Milliseconds. A feed with one of these can be drawn as a waterfall.
- bytes → const FieldKind
-
A byte count, rendered in human units.
- timestamp → const FieldKind
-
Milliseconds since the epoch.
- json → const FieldKind
-
A nested structure, rendered by a JSON viewer rather than a cell.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited