Property class Null safety
Property annotation enables you to explicitly configure some details about how a field is stored in the database.
- hashCode → int
The hash code for this object. [...]
- runtimeType → Type
A representation of the runtime type of the object.
- signed → bool
For integer property only: indicate how should values be treated when
executing queries or creating indexes. Defaults to
- type → PropertyType?
Override dart type with an alternative ObjectBox property type. [...]
- uid → int?
ObjectBox keeps track of entities and properties by assigning them unique
identifiers, UIDs, during the code-generation phase. All those UIDs are
stored in a file objectbox-model.json in your package and are looked up by
name. If the name changes a new uid is assigned, effectively creating a
new field in the database. [...]