Property class Null safety

Property annotation enables you to explicitly configure some details about how a field is stored in the database.

Constructors

Property({PropertyType? type, int? uid, bool signed = true})
Create a Property annotation.
const

Properties

hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
signed bool
For integer property only: indicate how should values be treated when executing queries or creating indexes. Defaults to true.
final
type PropertyType?
Override dart type with an alternative ObjectBox property type.
final
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.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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