Field — key to a value in a host struct, carrying accessor logic and type scope
Virtualized Field / Descriptor
interface common between Structure and Map
When K extends Enum & Field, serialization comes for free via EnumMapByName on Map<Enum, V>.
Although the containing class with full context of relationships between fields
By defining accessors on the key rather than the struct, the struct itself can remain a plain object (or extension type wrapper).
The key maintains the type scope of V.
- Implementers
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getIn(
covariant Object struct) → V -
Read this field's value from
struct. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setIn(
covariant Object struct, V value) → void -
Write
valueinto this field ofstruct. -
testAccess(
covariant Object struct) → bool -
Whether this field is present/valid for
struct. Defaults totrue(fixed-schema). Override for optional/sparse fields. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited