CacheField class

Marks a field in a @Cacheable class for inclusion in the generated adapter.

Fields without this annotation are ignored by the code generator.

index must be a non-negative integer unique within the class. Never change a field index once data has been written — reorder the annotation index instead of the physical field order if needed.

Constructors

CacheField(int index)
Creates a CacheField annotation.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
Ordinal position of this field (0-based, unique within the class).
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.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited