FieldDescriptor class
One value inside a feed event or a state snapshot.
Constructors
- FieldDescriptor(String key, String label, {FieldKind kind = FieldKind.text, bool primary = false})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → String
-
The key in the payload map.
final
- kind → FieldKind
-
final
- label → String
-
final
- primary → bool
-
The column that identifies a row — a request's path, a query's SQL. A
narrow renderer shows this one and drops the rest.
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
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
Map< String, Object?> json) → FieldDescriptor